A
avi
I have a datagrid which is binded to an ArrayList.
The user can add or delete entries to / from the
ArralyList object, afterwards the change needs to be
reflected in the datagrid.
I used the datagrid method SetDataBinding() after each add
or delete requests as follows:
first using null:
dataGrid1.SetDataBinding(null,"");
second:
dataGrid1.SetDataBinding(myArrayList,"");
The add process works but the delete sometimes doesn't. If
the last row had been deleted I recive
a "System.IndexOutOfRangeException" exception.
Any suggestions???
The user can add or delete entries to / from the
ArralyList object, afterwards the change needs to be
reflected in the datagrid.
I used the datagrid method SetDataBinding() after each add
or delete requests as follows:
first using null:
dataGrid1.SetDataBinding(null,"");
second:
dataGrid1.SetDataBinding(myArrayList,"");
The add process works but the delete sometimes doesn't. If
the last row had been deleted I recive
a "System.IndexOutOfRangeException" exception.
Any suggestions???