K
Ken Cooper
Hi All,
I'm getting the following error which I can't fix by the workarounds I've
seen suggested:
"Error when committing the row to the original datastore. Index was outside
the bounds of the Array"
This occurs under the following circumstances:
I have a dataset which gets returned from a WebService
I create a dataview based on a table in this dataset which is used as the
datasource for a datagrid in a Windows Forms Application
The datagrid is set to readonly - I want to be in control of all updates and
deletions.
I delete a record which was displayed in the datagrid, and get a new dataset
from the database and rebind the view to the datagrid. I then click on any
row in the datagrid and get the above error.
How can I tell the datagrid to forget the original data? Discard it? That I
don't want it to commit anything to a datastore? I'm finished with it. Let's
move on, I have fresh data?
Any help appreciated.
Ken
I'm getting the following error which I can't fix by the workarounds I've
seen suggested:
"Error when committing the row to the original datastore. Index was outside
the bounds of the Array"
This occurs under the following circumstances:
I have a dataset which gets returned from a WebService
I create a dataview based on a table in this dataset which is used as the
datasource for a datagrid in a Windows Forms Application
The datagrid is set to readonly - I want to be in control of all updates and
deletions.
I delete a record which was displayed in the datagrid, and get a new dataset
from the database and rebind the view to the datagrid. I then click on any
row in the datagrid and get the above error.
How can I tell the datagrid to forget the original data? Discard it? That I
don't want it to commit anything to a datastore? I'm finished with it. Let's
move on, I have fresh data?
Any help appreciated.
Ken