G
Guest
I have a datagridview which is linked to a table which has 3 fields with the
primary key being an autoincrement (tinyint). I use the wizard to create
sqldataadapter, dataset and datagridview. Now when I try to enter second row,
I get error : "PrimaryKey1 cannot be null". (Primarykey1 is the name of
primary key). I had this error with several other forms and by deleting
tables, stored procedures, sqldataadapter, dataset, datagridview and form, it
then works! What is going on here? Does it work sometimes? There seems to be
no logic as to why this happens. I can't be deleting all this data if it does
not work and then hope it the does later. Is there some quirk with
datagridview?
primary key being an autoincrement (tinyint). I use the wizard to create
sqldataadapter, dataset and datagridview. Now when I try to enter second row,
I get error : "PrimaryKey1 cannot be null". (Primarykey1 is the name of
primary key). I had this error with several other forms and by deleting
tables, stored procedures, sqldataadapter, dataset, datagridview and form, it
then works! What is going on here? Does it work sometimes? There seems to be
no logic as to why this happens. I can't be deleting all this data if it does
not work and then hope it the does later. Is there some quirk with
datagridview?