DataGrid Column Delete Question

  • Thread starter Thread starter Duncan
  • Start date Start date
D

Duncan

I am using the datasource property to populate the datagrid. Once
populated the user has the option to select/deselect fields. How do
you delete columns by mapping name. Does anyone know how to do this?

Thanka in advance
 
Duncan,

You would have to access the DataGridTableStyle instance for the table
being displayed, and then you would have to remove the DataGridColumnStyle
instance for the column in the grid you want to remove.

Hope this helps.
 
Back
Top