Hi,

I am using typed dataset to bind to a datagrid. Data set have
Id,Name,Date,UserID ,UserName columns. Id is Primary key and UserID is
foreign key, so I am not showing it to user. The datagridview has Allow new
,allow delete properties enabled, so that User can enter values in it. I have
column autogenerate property false and added ID,Name,UserName columns added
at design time.

Now question is, when I add a new row in datagridview, after entering value
for Name column, when i hit Enter Key, it shows me error that UserID can not
be null.

Could some one give me idea how to populate UserID value if its not
displayed on the datagrid. My goal is to use typed dataset to update data in
database using data adaptor.

Please guide me how to solve above problem. If the question is confusing,
please let me know, I will try to explain further.

Thanks in advance.
Hiten