c# - DataGridView has to much colums -


i have winforms contains datagridview. datagridview contains 4 colums (1 checkbox, , 3 text).

when load form, loading data in list of object(almost 15 attributes).

in colums, have 3 values of objects must displayed, , others use, programmatically, not visible user.

the problem is, when add list datasource of gridview, got 3 colums, values want, 1 colums each of others attributes...

why other colmums appears, when not add them in code?

i not found datagridview property prevent colums add.

set datagridview.autogeneratecolumns false , bind columns manually adding columns , setting data property


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -