T
Tim Mattingly
Hi,
i'm new to ado.net and i think this is a very basic question:
i want to use a DataTable as a source for a datagrid placed on my form. I
want to be able to change the records interactively in the datagrid and also
through code, placed behind a button on the same form.
I want to save the changes to the database and fetch the new primary key
like in access:
on leaving the current row
on closing the form
If any update errors occured, i wish to cancel the update, to prevent the
user from leaving the row or closing the form.
Which are the right events and actions i have to use?
Do you have any tips, samples or links?
Thank you,
Tim
i'm new to ado.net and i think this is a very basic question:
i want to use a DataTable as a source for a datagrid placed on my form. I
want to be able to change the records interactively in the datagrid and also
through code, placed behind a button on the same form.
I want to save the changes to the database and fetch the new primary key
like in access:
on leaving the current row
on closing the form
If any update errors occured, i wish to cancel the update, to prevent the
user from leaving the row or closing the form.
Which are the right events and actions i have to use?
Do you have any tips, samples or links?
Thank you,
Tim