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

Getting element value 'null' after pressing down key

Thread ID:





118439 Mar 9,2015 09:17 AM UTC Mar 10,2015 06:46 PM UTC WinForms 1
Tags: GridGroupingControl
Asked On March 9, 2015 09:17 AM UTC

I am using GridGrouping Control.
I have 'TableControlCurrentCellEditingComplete' event of that grid.
When I change any column value and press 'Enter' key, I get the element having all column values.
But when I press 'Down Arrow' Key, I get null element.
Is there any other method to get element or record at 'Down Arrow' key? 


Neelakandan Kannan [Syncfusion]
Replied On March 10, 2015 06:46 PM UTC

Hi Rasika,


Thank you for your interest in Syncfusion products.


If you want to get the display element or record while clicking the “Down Arrow” button, you can use TableControlCurrentCellKeyDown event. Using this event, you can get the record by accessing DisplayElement. Please make use of below code and attached sample,


Code Snippet:

this.gridGroupingControl1.TableControlCurrentCellKeyDown += new GridTableControlKeyEventHandler(gridGroupingControl1_TableControlCurrentCellKeyDown);           


void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)


            if (e.Inner.KeyCode == Keys.Down)


                GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.TableControl.CurrentCell.RowIndex, e.TableControl.CurrentCell.ColIndex);

                Record record = style.TableCellIdentity.DisplayElement.GetRecord();




Please me know if you have any concerns.




Attachment: Sample_DisplayElement_1ec35d20.zip


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

or the page will be automatically redirected to 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