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. Image for the cookie policy date

get tablename of selected records

Hi,
I am using gridgrouping control.I use master-child relationship in gridgrouping control.
I want to find tableName of selected row  in buttonclick event.
Is any method for this?
Please give me any solution regarding to this issue.

1 Reply

AK Adhikesevan Kothandaraman Syncfusion Team September 15, 2015 06:33 AM UTC

Hi Pravin,

Thanks for contacting Syncfusion Support.

To get the table name of Current Selected record, use the GetInnerMostCurrentElement method of the Grid. Please refer to the following KB document
Code Example:

Element el = this.gridGroupingControl1.Table.GetInnerMostCurrentElement();

if (el != null)

{

    //Display the Table name of current selected record.

    MessageBox.Show(el.ParentTableDescriptor.Name);             
}
KB Link:
https://www.syncfusion.com/kb/638/how-can-i-get-the-record-and-column-of-the-current-cell-when-i-have-nested-tables-in-the

Regards,
Adhi.


Loader.
Live Chat Icon For mobile
Up arrow icon