I have setup a hierarchical RadGridView with a 2 command button columns on the master rows (remove, and add new child row), and the child rows have 1 command button, remove.. When adding a new child row, a modal form is shown and after the info is filled out and saved, the gridview was completely rebound and reloaded.. The same thing occurs when I hit a remove button, except that the row is deleted.. I originally had this working in the Q3 2007 version without any problems, but in upgrading to q1 2008, my same code no longer works..
I realize my original setup was probably less than correct, and i now have the gridview setup with 2 global BindingLists.. One is bound to the mastertemplate, and the other is bound to the childtemplate.. Now when I add a new child row, I just add the proper object to the child bindinglist variable, and it automaticaly shows up in the gridview (much better!)..
The problem I am having is that when I try to remove/delete a row [bindinglist.removeat(index)], I get the following error:
"This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row."
I somewhat understand that the gridview is still bound to this object somehow.. What I don't understand is how to go about correcting the issue..
Any help would be appreciated, including any suggestions for how to accomplish refreshing the data on my gridview without the bindinglists
I realize my original setup was probably less than correct, and i now have the gridview setup with 2 global BindingLists.. One is bound to the mastertemplate, and the other is bound to the childtemplate.. Now when I add a new child row, I just add the proper object to the child bindinglist variable, and it automaticaly shows up in the gridview (much better!)..
The problem I am having is that when I try to remove/delete a row [bindinglist.removeat(index)], I get the following error:
"This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row."
I somewhat understand that the gridview is still bound to this object somehow.. What I don't understand is how to go about correcting the issue..
Any help would be appreciated, including any suggestions for how to accomplish refreshing the data on my gridview without the bindinglists