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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Accessing the current cell in the child table

Thread ID:

Created:

Updated:

Platform:

Replies:

30554 Jun 20,2005 03:09 PM UTC Jun 20,2005 05:04 PM UTC WinForms 1
loading
Tags: Grouping
Albie
Asked On June 20, 2005 03:09 PM UTC

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

Administrator [Syncfusion]
Replied On 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);
	}
}

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;