Hi Ramana,
Thanks for your interest in Syncfusion Products.
You can get the parent row details to which a particular child record belongs by accessing the DisplayElement. Please refer to the following code handled in TableControlCellClick event.
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex);
if (style.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || style.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
if (style.TableCellIdentity.Table.TableDescriptor.Name == "ChildTable")
{
Element ele = style.TableCellIdentity.DisplayElement;
Element el = ele.ParentTable.RelationParentTable.CurrentElement;
Record r1 = el.GetRecord();
if(r1 != null)
MessageBox.Show(r1.Info);
}
}
This code triggers the message box with parent record details when a child record is clicked.
Sample:
http://files.syncfusion.com/support/samples/Grid.Windows/7.3.0.20/F90630.zipRegards,
Rajadurai