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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top