We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to get index of second child of particular parent in gridgrouping control?

Hi,
I am using gridgroupingcontrol ,
I want index of second child of particular parent .
When I select the second child row it gives index of first child row.
Is any solution regarding this?
Regards
Paurnima.

1 Reply

NK Neelakandan Kannan Syncfusion Team November 20, 2014 04:14 AM UTC

Hi Paurnima,

 

Thank you for your interest in Syncfusion products.

 

If you want to get the Rowindex of the particular child table in grid, you can use GridTableModel class. The child table model can be retrieved by using GetTableModel property of grid.

 

Please refer the below code:

 

void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)

{

GridTableModel gridModel = this.gridGroupingControl1.GetTableModel("Child_Table_Name"); //Specify your Child table name

int rowIndex = gridModel.CurrentCellInfo.RowIndex;

}

 

Please let me know if you have any concerns.

 

Regards,

Neelakandan


Loader.
Up arrow icon