Accessing the current cell in the child table

The TableControl_CurrentCellMoved event gives the parent tablecontrol as the sender and I can''t find a way to get the childtable''s current record. Can you please help me. Thank you Albie

1 Reply

AD Administrator Syncfusion Team June 20, 2005 05:04 PM UTC

Try this:
private void gridGroupingControl1_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e)
{
	GridCurrentCell cc = e.TableControl.CurrentCell;
	GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex];
	GridRecord rec = style.TableCellIdentity.Table.CurrentRecord as GridRecord;
	if(rec != null)
	{
		Console.WriteLine(rec);
	}
}

Loader.
Up arrow icon