I have a hierarchial grid with 3 levels - Parent, Child, & Grandchild. When the user clicks the imagebutton on a Child level row, I want all of the Grandchild level rows to go into edit mode. Here's my code:
Upon Rebind(), I receive the following error:
"Specified argument was out of the range of valid values. Parameter name: index"
Before the Rebind, nestedTableView.Items.Count = 4. After the Rebind, nestedTableView.Items.Count = 0.
If I rebind the
grid instead of rebinding the tableview, (
dg.Rebind() ) then I lose all the Child & Grandchild data with no errors. If I rebind on the event item itself (
item.OwnerTableView.Rebind() ) then I only lose the GrandChild data with no errors.
Needless to say, I'm pretty confused what object to do my rebind on in order to put all of the Grandchild rows into edit mode and retain the data visibly on the screen. I'm guessing I'm pretty close.
Thanks in advance.