0
hi,
if you are using datatable as datasource for datagridview (or even otherwise),
you can add columns in the datagridview at the designtime by selecting Columns property in property window, and set datapropertyname of the column to corresponding column in datatable.
Once you have all the columns defined in the gridview, then based on requirement you can set visible property of each columns at design time
like grd.Column["Paper1"].Visible=false;
This can be an alternative, although code intesive but will not consume too much of processing time.
0
Hi friend,
You seem to following my suggestion, and start a new post.
Actually, I think you do not need to create a dynamic datable, but you can form different view by using DataView which can be bound to DataGridView as well.
jinge.