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.
 

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