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

How to get table name on event handling TableCellMouseDown event?

Thread ID:





48488 Aug 29,2006 01:21 PM UTC Aug 30,2006 12:18 PM UTC WinForms 3
Tags: GridControl
Asked On August 29, 2006 01:21 PM UTC

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 08:57 PM UTC

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 07:55 AM UTC

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

Administrator [Syncfusion]
Replied On August 30, 2006 12:18 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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