c# - How do I suppress automatic generated columns in a DataGridView? -


when assign source (a datatable) datagridview, automatically generates columns each data column in data table. want columns defined manually. how suppress creation of these columns?

you need open column editor , uncheck box auto generate fields. towards bottom left of dialog. columns

if creating gridview code there property:

datagridview.autogeneratecolumns = false; 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -