Win Form DataTable Display Properties
Posted on 2009-02-12
I have a DataGridView that is bound to a BindingSource. I do some manual processing and create several DataTables I then set the datasource of the BindingSource to the desired DataTable.
This works well and the DataGridView updates and displays the data I want to display.
What I am looking for is a way to associate display properties, such as column width, with each datatable.
So for example if DataTable_1 has 3 columns; "c1", "c2", "c3" and DataTable_2 has 2 columns: "b1", "b2"
I want to be able to associate properties like c1's width is 25px so that when I set the DataSource to DataTable_1 I don't have to iterate through the columns of the DataGridView and set each column property.