on Oct 10, 2012
We have a self referencing hierarchical grid that contains rows with multiple parents. For example, if I denote '->' as 'is a parent of', then we have:
A -> B -> C
A -> D -> C
Note that C is a repeated row in the GridData.
Now C also has child rows, ie.:
C -> D
C -> E
The RadGrid correctly displays the children of C under each occurrence of C (even though nodes D & E are not repeated in the GridData). The grid (correctly again), treats each occurrence of D and E as the same (i.e. references to 1 object and not copies of it).
The problem appears when I set D or E to IsCurrent (i.e. dataCell.RowInfo.IsCurrent = true; where D or E is contained in the dataCell). Both rows get highlighted which is great, however, when the user double-clicks on the cell to edit it, the edit box appears on the first occurrence, even if they double-click on the 2nd or other occurrences. Additionally, once edited only the first occurrence (where the edit box appears) changes it's value on the screen.
So how do I:
1. Make the edit box appear on the row that the user double-clicked on?
2. Update all occurrences of the same record on the screen?