How to get table name on event handling TableCellMouseDown event?

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.

3 Replies

AD Administrator Syncfusion Team 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
e.TableControl.TableDescriptor.Name
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Best regards,
Madhan




KB Konstantin Babiy August 30, 2006 07:55 AM UTC

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


AD Administrator Syncfusion Team 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
http://www.syncfusion.com/Support/user/uploads/GGC_Nested_499db864.zip

Thanks,
Rajagopal

Loader.
Up arrow icon