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.

Getting element value 'null' after pressing down key

Thread ID:





118439 Mar 9,2015 05:17 AM Mar 10,2015 02:46 PM Windows Forms 1
Tags: GridGroupingControl
Asked On March 9, 2015 05:17 AM

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 02:46 PM

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.

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.