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.
if creating gridview code there property:
datagridview.autogeneratecolumns = false;
Comments
Post a Comment