Hello again.
I have a nested grid scenario, and on updating a record in the child grid, I need to ReBind() the parent grid.
e.Canceled = true;
grdProfileIntakes.Rebind();
However, doing this collapses the grid. I need it to refresh and then expand the appropriate nodes to where it was. Going through the documentation, I think I have two possible solutions. First is using Grid.SelectedIndexes.Add(indexOfSelectedParentTableRow, indexOfParentTable), second is using Grid.MasterTableView.Items[indexOfSelectedItem].Expanded = true.
Both methods need the index of the selected item, specifically the index of the parent of the selected child item. How can I get this value?
TIA
kitster
I have a nested grid scenario, and on updating a record in the child grid, I need to ReBind() the parent grid.
e.Canceled = true;
grdProfileIntakes.Rebind();
However, doing this collapses the grid. I need it to refresh and then expand the appropriate nodes to where it was. Going through the documentation, I think I have two possible solutions. First is using Grid.SelectedIndexes.Add(indexOfSelectedParentTableRow, indexOfParentTable), second is using Grid.MasterTableView.Items[indexOfSelectedItem].Expanded = true.
Both methods need the index of the selected item, specifically the index of the parent of the selected child item. How can I get this value?
TIA
kitster