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.
Syncfusion Feedback

How to know which Grid I,m working On

Thread ID:

Created:

Updated:

Platform:

Replies:

53608 Dec 16,2006 01:07 PM UTC Dec 18,2006 08:50 AM UTC Windows Forms 1
loading
Tags: Grouping
Mgs4solidsnake
Asked On December 16, 2006 01:07 PM UTC

Hi every , I have tables A & B , A is Parent to B , i want to get the current record of of parent table when i click a record of parent table , dont know how to check which grid i,m working on when click on any record in either table A or B, Thanks.

Regards,
Mgs4solidsnake

Administrator [Syncfusion]
Replied On December 18, 2006 08:50 AM UTC

Hi Mgs4solidsnake,

This can be achieved by handling the TableControlCellClick event and check for the table name by using e.TableControl.TableDescriptor.Name property. Please try the following code snippet and let us know if you need any further assistance.

>>>>>>>>>>>>>>>>>>>>>
//this.gridGroupingControl1.TableControlCellClick +=new GridTableControlCellClickEventHandler(gridGroupingControl1_TableControlCellClick);
private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
if(e.TableControl.TableDescriptor.Name == "B")
Console.WriteLine(e.TableControl.Table.CurrentRecord);
}
>>>>>>>>>>>>>>>>>>>>>

Have a nice day.

Best regards,
Madhan

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.

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

;