Hi Supriya,
Thank you for your interest in Syncfusion products.
If
you want to change the current cell value and get the column name of current
cell of child table in a GridGroupingControl, you can use “TableControlCurrentCellStartEditing” event. Please refer the below code,
Code:
this.gridGroupingControl1.TableControlCurrentCellStartEditing
+= new GridTableControlCancelEventHandler(gridGroupingControl1_TableControlCurrentCellStartEditing);
void
gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs
e)
{
Element el = this.gridGroupingControl1.Table.GetInnerMostCurrentElement();
GridCurrentCell cc = e.TableControl.CurrentCell;
GridTable tablechild = this.gridGroupingControl1.GetTable("Orders");
GridRecord rec = el as
GridRecord;
GridTableCellStyleInfo style =
tablechild.GetTableCellStyle(cc.RowIndex, cc.ColIndex);
if (tablechild.CurrentRecord != null)
MessageBox.Show("
Child table ColumnName : " + style.TableCellIdentity.Column.Name);
}
Please let us know if you have any concern.
Regards,
Muthukumar k
Attachment:
Currentcell_value_1ad759a8.zip