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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get record of a hierarchic table when the table is not in focus

Thread ID:





92559 Jan 21,2010 12:12 PM UTC Jan 22,2010 09:22 AM UTC WinForms 1
Tags: GridControl
yocheved dvalaitsky
Asked On January 21, 2010 12:12 PM UTC

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 09:22 AM UTC

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\\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



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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