hide datagrid column .net 2.0

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

I am using c# express RTM. I have a datagrid with attached to a
dataset. I have set the primary key (identity seed) column's visible
proeprty to false. The column is hidden in design view but when I run
the form it appears. Not sure if this is a bug, or if because the
field is a primary key field with an identity seed it cannot be hidden.

Another question, how can I set the default value of a column to the
identity field of the parent form? The datagrid is in a parent-child
relationship.
 
It appears you cannot hide an identity seed/primary key column in a
datagrid. I hide the foriegn key column and it worked.
 
Back
Top