DG.columns[0].ItemStyle.Width = 100;
DG.columns[0].Visible = true;
should do the trick. You can also use the column name instead of the column
number as an index into the collection of columns.
Is that what you need?
"Eric B." wrote:
How do I access the properties of DataGrid columns that were created from a
DataTable source? I need to format the column sizes and make some invisible.
Thanks,
Eric B.