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

How to control down arrow navigation

Thread ID:

Created:

Updated:

Platform:

Replies:

75225 Jul 16,2008 05:08 PM UTC Jul 29,2008 07:39 AM UTC WinForms 1
loading
Tags: GridControl
Brian Richards
Asked On July 16, 2008 05:08 PM UTC

So we're using a virtual grid that we bind to a data table. To allow users to add new rows to the end we add an empty row to the end of the grid. When they enter data in that row we add a new row and set the cell value in the data table and then a new blank row appears at the end.

If a user edits the a cell int he last row and presses Enter the edit completes, the new row appears and the current cell moves down a row. However if they edit and use the Down Arrow it just stays on the current cell and doesn't move. How can I program around this?

Thanks


Nisha Arockiya A [Syncfusion]
Replied On July 29, 2008 07:39 AM UTC

Hi Brian,

In the event where you are checking, whether the Enter key is pressed or not,add down arrow key press check condition also., like
if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Down)
in the gridControl1_KeyDown event.

Regards,
Nisha


>So we're using a virtual grid that we bind to a data table. To allow users to add new rows to the end we add an empty row to the end of the grid. When they enter data in that row we add a new row and set the cell value in the data table and then a new blank row appears at the end.

If a user edits the a cell int he last row and presses Enter the edit completes, the new row appears and the current cell moves down a row. However if they edit and use the Down Arrow it just stays on the current cell and doesn't move. How can I program around this?

Thanks




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

;