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.

How to get table name on event handling TableCellMouseDown event?

Thread ID:





48488 Aug 29,2006 09:21 AM Aug 30,2006 08:18 AM Windows Forms 3
Tags: GridControl
Asked On August 29, 2006 09:21 AM

How to get table name on event handling TableCellMouseDown event?

In grid grouping control, I want to have a current table name (the one we pressed on) during MouseDown event handling.

Thank you for answer.

Administrator [Syncfusion]
Replied On August 29, 2006 04:57 PM

Hi Vitaliy,

The table name can be acquired by using .TableDescriptor.Name in the TableControlMouseDown event. The following is the code snippet.
// TableControlMouseDown event

Best regards,

Konstantin Babiy
Replied On August 30, 2006 03:55 AM

I already tried this property, but it returned me not a table name, but "TableDescriptor1" value.

Administrator [Syncfusion]
Replied On August 30, 2006 08:18 AM

Hi Konstantin,

The TableDescriptor.Name will give you the respective table name. Try the below piece of code in the TableControlCellClick event.

private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
Console.WriteLine( "TableName : {0}", e.TableControl.TableDescriptor.Name );

Here is a sample



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.