Adding data to Deleted columns in a DataGrid?

S

scott

Hi all, got a bit of a problem with a datagrid.



I have a datagrid that gets it information from a data table which in turn
is connected to a data set. The data set is linked to an xml file and an xml
schema for the rules.



The table that i have displayed in the datagrid has 2 columns that i don't
want the user to see. They are primary keys and foreign keys. These 2
columns are deleted from the datagrid.



My problem is though that when a user creates a new row i need to some how
intercept it so that i can add the primary key and forien key for that row,
otherwise the datagrid throws up a message box saying that the rules have
been broken because there is no primary or foregn key pressent.



Is there any way that i can let the user type in all the other fields that
exist in the table but allow me to type in the 2 that i don't want them to
have access to ?



Thank for any help



Scott.
 

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