O
OHM
First create a typed-dataset with an integer ID primary-key field and a
string Name field.
Then create a form with a datagrid and a reference to the dataset on
it. set the grids datasource to dataset1.table1.
If you then enter 1 and Me on the first line, all is OK.
If you enter 1 and Me2on the second line, you get the following error:
"Error when committing the row to the original datastore" - "Column ID is
constrianed to be unique, Value 1 is already present. Do you want to correct
the value? Yes/No.
I would like to put my own message up for the user or do something
else, but I cant seem to find a way to hook into this internally-handled
ADO.NET error.
Any answers would be greatfully received.
string Name field.
Then create a form with a datagrid and a reference to the dataset on
it. set the grids datasource to dataset1.table1.
If you then enter 1 and Me on the first line, all is OK.
If you enter 1 and Me2on the second line, you get the following error:
"Error when committing the row to the original datastore" - "Column ID is
constrianed to be unique, Value 1 is already present. Do you want to correct
the value? Yes/No.
I would like to put my own message up for the user or do something
else, but I cant seem to find a way to hook into this internally-handled
ADO.NET error.
Any answers would be greatfully received.