deleting from a bound datagrid system.indexoutofrangeexception

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a problem deleting from a datagrid bound to a dataset. then datagrid is bound as follows

MyDatagrid.DataSource = Mydataset.Tables(strtable

this works fine for adding and updating, but when I try and delete something I often get a system.indexoutofrangeexception
What is this about? there is nothing in the knowledgeabase about this

Any ideas what is going wron

Robert
 
Robert Batt said:
Hello,
I have a problem deleting from a datagrid bound to a dataset. then datagrid is bound as follows:

MyDatagrid.DataSource = Mydataset.Tables(strtable)

This really isn't helpful when diagnosing a "delete" function. The index
out of range simple means that you are trying to delete a member that it
cannot find by means of selecting an index that is beyond the scope of the
collection.
this works fine for adding and updating, but when I try and delete
something I often get a system.indexoutofrangeexception.
 
Back
Top