Hiding datagrid columns

P

Paul Sampson

Hi,

I have a datagrid programatically bound to a DataSet which contains a single
table, with a primary key and two other columns. I want to hide the primary
key column in the datagrid, so I created a TableStyle and a GridColumnStyle,
which I set to Width = 0

This doesn't hide the column, despite what the MSDN help file says. What am
I missing here? I don't want to do this in the visual wizard thing, call me
old-fashioned but it always creates hassles when you do anything slightly
more complicated than HelloWorld() !

Generally speaking, what is the easiest way to manage the above scenario,
with respect to writing any changes back to my SQL database, using a typed
dataset?

Thanks in advance,

Paul
 

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