How to hide a column in DataGrid ( or DataView)???

A

Alex

Hello!
I need create a dataset with all columns, but in DataView (connected with
DataGrid) I need hide some column ( So I don't know I must do it in DataView
or DataGrid??) , Pls help me!
Thanks for all your help!
 
Y

yonggangwang

Hi:
You can use TableStyles to solve your problem.
In DataGrid attribute,you can select TableStyles to define it.
Every DataGrid has one default TableStyle.But you can define youselvse.
TableStyle contain a collection of GridColumnStyles.
The important thing is to define mapping name of GridColumnStyle to you
column name,
try it ,not very difficult.
Sorry about my pool english.

You must define GridColumnStyles for every column that you want to display.
 

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

Top