Hiding datagrid columns

  • Thread starter Thread starter Paul Sampson
  • Start date Start date
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
 
Back
Top