Hiding Columns in a Datagrid?

G

Guest

Hello,

Thanks for reviewing my question. I hope this is a simple question. I
would like to know if I have a datagrid attached to a dataset, which in turn
is associated with a table, is there a way to hide columns? Can I do it at
design time?

Thanks again
Peter
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

The easiest way is to declare the column of the grid as width=0 , or
visible = false

depending of how you declare your datagrid you can do it in design and you
will always can do it in running time.

Cheers,
 

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