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.
Unfortunately, activation email could not send to your email. Please try again.

Accessing the current cell in the child table

Thread ID:

Created:

Updated:

Platform:

Replies:

30554 Jun 20,2005 11:09 AM Jun 20,2005 01:04 PM Windows Forms 1
loading
Tags: Grouping
Albie
Asked On June 20, 2005 11:09 AM

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 01:04 PM

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.

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.

;