Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, ID auto-generate is possible in datagridview.
Just i workout student info enter in datagridview and each student as separate id (number). In this number can generate automatically. Its possible?
My front end is vb.net and back end is ms access.
Give some suggestions
Thank U............
Posted

1 solution

You should create an ID column in your student table in the database, and set this to AUTO_NUMBER, and make it the primary key. Then when you save the new student to the database it will automatically generate an integer ID.

Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900