Some problem about columns of DataGrid

who know

How to add/insert a column to datagrid

How to lock a column in datagrid like MS Excel

How to hide/show a column

please


Answer this question

Some problem about columns of DataGrid

  • Dako

    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.

  • cronik

    Visit this resource for a bunch of info on the datagrid.

    http://www.syncfusion.com/FAQ/WinForms/default.asp#44

  • Some problem about columns of DataGrid