This is a migrated thread and some comments may be shown as answers.

Find Parent/Grandparent row in RowSourceNeeded event

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 01 Mar 2017, 10:14 PM
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

Sort by
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.

Regards,
Dess
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or