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.

GGC TableControlMouseDown Table Level

Thread ID:





38064 Dec 5,2005 11:36 AM Dec 5,2005 01:35 PM Windows Forms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On December 5, 2005 11:36 AM

Is there a way to check the level of the record (child or parent) in TableControlMouseDown event handler without checking TableCellIdentity.Table.TableDescriptor.Name? Thank you.

Administrator [Syncfusion]
Replied On December 5, 2005 01:26 PM

You can use code like:
private void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
	Element el = this.gridGroupingControl1.TableControl.PointToNestedDisplayElement(new Point(e.Inner.X, e.Inner.Y));
private int GetLevelFromTableControl(string name)
	int i = 0;
	GridTableDescriptor td = this.gridGroupingControl1.TableDescriptor;
	while(td != null && td.Name != name)
		if(td.Relations != null && td.Relations.Count > 0)
			td = td.Relations[0].ChildTableDescriptor;
			td = null;
	return i;

Administrator [Syncfusion]
Replied On December 5, 2005 01:35 PM

Thank you! This works perfectly


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.