|
-
Mar 22nd, 2011, 05:37 AM
#1
Thread Starter
New Member
Auto increment values always negative in Gridview
trying to make a sample Master-Detail relation ship database example in vb.net
When I add MasterTable a new row via bindingnavigator and save via savebutton autoincrement field goes -1 -2... negative values hence cannot get correct ID numbes saved in table rows till I close open sample application.
So This is a big problem for me.How can I see correct autoincrement ID numbers in gridview after savebutton ?.Just ID numbers saved to mdb.but cannot see them i gridview and displaying negative weird numbers.
This problem is important because without getting ID numbers cannot bind Detail table rows to newly recorded master table rows.
This driving me crazy since last 2 years.
do you have a real solution for this or a small exaple ?
(thanks before for any answers)
Last edited by hcetiner; Mar 22nd, 2011 at 07:51 AM.
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
|