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
close icon

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.
Live Chat Icon For mobile
Up arrow icon