We are using a hierarchical RadGridView in unbound mode.
When the RowSourceNeeded event is fired, to fill up the child grid, we need to know which row is the parent of the child grid (and its grandparent and so on).
How can we find this out from inside RowSourceEvent?
1 Answer, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Mar 2017, 12:27 PM
Hello Jeff,
Thank you for writing.
In the RowSourceNeeded event, you have access to the parent row by the GridViewRowSourceNeededEventArgs.ParentRow property. The GridViewRowInfo.Parent allows accessing the desired parent up to the top hierarchy level. Additional information for the load on demand approach is available here: http://docs.telerik.com/devtools/winforms/gridview/hierarchical-grid/load-on-demand-hierarchy
I hope this information helps. Should you have further questions I would be glad to help.