Where is the Column collection in a DataGrid?

  • Thread starter Thread starter mCompany
  • Start date Start date
M

mCompany

How do I access the Column collection in a bound DataGrid?

Example:

DataGrid.DataSource = ds.Tables("MyTable")
 
Hi,
The DataGrid doesn't own the column collection, if you want to modify
the field definition, you may refer to the DataTable.Columns. if you want to
add your own column style(look&feel of display, modify of the column) , you
may refer to the DataGrid.TableStyle. for more information please lookup in
MSDN.
thanks!

regards,

Ying-Shen Yu
 
Back
Top