How to print Access Autonumber on a datagridview column
Posted on 2012-04-02
In Access database, assuming that a table is created with three fields and the first field is set to autonumber.
Now on an Access database Datasheet view, when a user enters a value on a new record, automatically the autonumber is generated and displayed on the first cell of the current row while the user enters the data on the following cells.
But i am writing my application in vb.net for the user interface and will be using a datagridview.
In the girdview when the user starts entering data on the new row, is it possible to display the autonumber on the gridview cell (i.e. is the actual autonumber that access has or will generate)
I am using vb.net and access database.
Thanks in advance.