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.

get tablename of selected records

Thread ID:

Created:

Updated:

Platform:

Replies:

120247 Sep 14,2015 08:02 AM Sep 15,2015 02:33 AM Windows Forms 1
loading
Tags: GridGroupingControl
pravin
Asked On September 14, 2015 08:02 AM

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.

Adhikesevan Kothandaraman [Syncfusion]
Replied On September 15, 2015 02:33 AM

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.


CONFIRMATION

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.

;