The DataGrid itself does not have rows or columns. It only shows the rows and columns of the datasource it is bound to. So you can't really change the columns of a DataGrid. You have to edit your source...
Use the methods of your datasource to add and change columns. If your datasource is a DataSet, modify the DataTable that you are bound to. If you are bound to an IList object, extend the object with your needed property.
Some problem about columns of DataGrid
Dako
Use the methods of your datasource to add and change columns. If your datasource is a DataSet, modify the DataTable that you are bound to. If you are bound to an IList object, extend the object with your needed property.
cronik
http://www.syncfusion.com/FAQ/WinForms/default.asp#44