Data Grid Columns

  • Thread starter Thread starter Ann Marinas
  • Start date Start date
A

Ann Marinas

Hello, everyone!

I was wondering about data grids the other day, and I've got a question
about it......

Can you hide columns in your datagrid even if the datagrid is binded?


Thanks!


Ann
 
The best way (only way I know) is to first create a DataGridTableStyle and
then create DataGridColumnStyle objects for each of the columns you want
visible. Add each DataGridColumnStyle to the DataGridTableStyle and finally
add the DataGridTableStyle to the DataGrid.

See MSDN documentation for those two classes for more details.
 
Back
Top