Hello,

I have a problem with a datagridview. In the datagrid view I have the primary key and foriegn key values that are inserted into it when the rowsadded event is fired. This works great except for the fact that I do not want my users to see the pk/fk values, and would like to not show them at all. If I set the visibility property to false, the values are not set, and throws an exception when they try and save.

I tried looking into the mappingtype property but have been unable to solve the problem.

How can I hide the columns but still have their values correctly stored?


Thanks,
Chris