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 record of a hierarchic table when the table is not in focus

Thread ID:

Created:

Updated:

Platform:

Replies:

92559 Jan 21,2010 07:12 AM Jan 22,2010 04:22 AM Windows Forms 1
loading
Tags: GridControl
yocheved dvalaitsky
Asked On January 21, 2010 07:12 AM

I use the GridGroupingControl.
That grid has four hierarchy tables, each table opens its child table.
I raised the TableControlCellClick event, to get the selected record through the 'e' event args, as follows:

Record r = e.TableControl.Table.CurrentRecord;

This property supports only a situation when you click a cell of table in focus.
But if you click a cell in a table that is not in focus- the e.TableControl.Table.CurrentRecord is null!

(For example: If the seccond table is in focus, and the user clicks the third table- the 'e.TableControl.Table.CurrentRecord' is null!)

How can I get the current selected record even if the user clicked a cell that is not in a table that was in focus?


Jisha Joy [Syncfusion]
Replied On January 22, 2010 04:22 AM

Hi Yocheved,

Thank you for using Syncfusion products.
You could refer the following sample from our sample browser, that shows how you can retrieve the values of the current element and the current cell in a Grid Grouping control.

C:\Documents and Settings\[UserName]\My Documents\syncfusion\essentialstudio\7.4.0.20\Windows\Grid.Grouping.Windows\Samples\2.0\Grouping Architecture\Access Current Element-Cell Demo\cs

Please let me know if you have any further queries

Thanks,
Jisha

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.

;