English 中文(简体)
Syncfusion GridGroupingControl, get the parent node from a child node
原标题:
  • 时间:2011-06-29 10:04:43
  •  标签:
  • syncfusion

I use the syncfusion GridGroupingControl on which I databind an object. This object contains an array of another objet.

Person { Name, Lastname, Orders[] }

So in my gridgroupingcontrol I have

Persons
Name | Last
James| Doe
    Orders
    123524 | 12/15/2010 | stuffs
John | Smith
    Orders
    545541 | 12/31/2005 | stufffs

When I click on the order 123524 row of James Doe, I want to get the parent node which is James Doe.

I ve tried everything like e.ParentChildTable.getData() e.ParentDisplayElement.getData() e.ParentGroup.getData() e.ParentSection.getData() e.ParentTable.getData() e.ParentTableDescriptor.getData()

most of the methods return null...

Whats the solution ?

Thanks guys !

John Smith

最佳回答

I found the answer, it s an OMG solution but it works !

e.Record.ParentDisplayElement.ParentChildTable.ParentNestedTable.ParentRecord.GetData()
问题回答

暂无回答




相关问题
Syncfusion Windows Forms Grid - C#

I need to create a column with a checkbox in a Syncfusion Windows Forms Grid. I am able to create a column with just a checkbox but am unable to add text next to it. Can anyone help me with this? I am ...

SyncFusion GridDataBoundGrid DataBinding Issue

I am using Syncfusion s GridDataBoundGrid control and binding my custom List. One of the properties is Nullable DateTime (DateTime?). When I add a new row to the grid and started editing in the ...

Style of OpenFileDialog when using Syncfusion in WPF

I m using Syncfusion to change the style of my WPF application to the Office 2007 Blue style. But the OpenFileDialog shows in the default style of my OS (XP) and there doesn t seem to be any way to ...

Syncfusion XlsIO - Unexpected token exception

We have a Syncfusion GridControl that contains formulae like: IF(R2<>0,100*(R3-R2)/R2,0) These formulae work fine in the grid and the formulae calculation engine gives the correct results whatever ...

热门标签