AD
Administrator
Syncfusion Team
July 25, 2008 10:37 PM UTC
Try code like this.
void gridGroupingControl1_TableControlCurrentCellAcceptedChanges(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.GetNestedCurrentCell();
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(cc.RowIndex, cc.ColIndex);
Record childRecord = style.TableCellIdentity.DisplayElement.GetRecord();
if (childRecord != null)
{
GridRecord parentRecord = childRecord.ParentChildTable.ParentDisplayElement.GetRecord() as GridRecord;
if (parentRecord != null)
{
Console.WriteLine(parentRecord); //use parentRecord.GetValue(columnName) to get a particular value
}
}
}
AD
Administrator
Syncfusion Team
July 28, 2008 11:13 PM UTC
Thanks for the reply.
The showed me exactly what I needed to do.