|
-
Oct 5th, 2009, 12:17 AM
#1
Thread Starter
Lively Member
[RESOLVED] autoincrement values in autogenerated datagridview
hi pips. i have a datagridview that is autogenerated together with a binding navigator. however, the table that it is binded to has a primary key that is unique and has an auto incremented value. my problem is that when i add a record in the datagrid without putting a value for my primary key, it generates an error saying it doesnt allow a null value. how can i do it so that it will allow values since the database that i use(mysql) automatically creates a value for my primary key.. any ideas? please help.. thanks..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|