J
jagrat
I am having an OleDBDataAdapter and a dataset. I fill the dataset with
a row and execute
Adapter.update(dataset,"Table Name");
Adapter.fill(dataset,"Table Name");
For the database table, my primary key is an auto number.
Currently, I am fetching the key using:
dataset.Tables["Table Name"].Rows[0].ItemArray[0]
It is working because this is the only row added into my table.
But I am certain that there should be a better alternative to this.
Waiting for response.
Jag
a row and execute
Adapter.update(dataset,"Table Name");
Adapter.fill(dataset,"Table Name");
For the database table, my primary key is an auto number.
Currently, I am fetching the key using:
dataset.Tables["Table Name"].Rows[0].ItemArray[0]
It is working because this is the only row added into my table.
But I am certain that there should be a better alternative to this.
Waiting for response.
Jag