How can I hide a datagrid column in a windows form

wdw

Freshman
Joined
Dec 11, 2002
Messages
37
I want to hide a datagridcolumn, but I don't know how??
Can someone help me on this question??

greetz:confused:
 
Hello Wamphry,

The method that was used in the microsoft example, did not work for me, because if I hide a column in the dataset. I can't use the value of the column in my code again. So is there a method that I can use to hide the column and still use the value of the hidden column??

thanks anyway
 
I can live with a method that makes the columns fontcolor the same as the background.
 
You'll need to create a DataGridTableStyle object. It defines the look and feel of your grid and also allows you to specify what columns to display. Check it out in the .NET help for more info.

-ner
 
Back
Top