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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

Hi,
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? 

Regards,
Rasika

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.

 

Regards,

Neelakandan


Attachment: Sample_DisplayElement_1ec35d20.zip

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

;