hide datagrid column .net 2.0

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.
 
S

Stephen

It appears you cannot hide an identity seed/primary key column in a
datagrid. I hide the foriegn key column and it worked.
 

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