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

right arrow key down on last column of row

Thread ID:

Created:

Updated:

Platform:

Replies:

58021 Mar 15,2007 10:24 PM UTC Mar 16,2007 07:56 PM UTC WinForms 1
loading
Tags: Grouping
sfsdf
Asked On March 15, 2007 10:24 PM UTC

Hi,
I have a GGC which has its showrowheader = false. When the cursor/focus is on the last cell of a row, and when I press the right arrow keystroke, the focus comes to the first cell in that row.. How can I suppress this?

when the row header is visible, this doesnt happen..

Thanks
Sam

Administrator [Syncfusion]
Replied On March 16, 2007 07:56 PM UTC

Hi Sam,

You can try this code snippet in a TableControlCurrentCellKeyDown event of the grid and let me know if this helps.

void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
{
int VisibleColCount = e.TableControl.TableDescriptor.VisibleColumns.Count ;
int LastColIndex = e.TableControl.TableDescriptor.FieldToColIndex(VisibleColCount - 1);
if (e.Inner.KeyData == Keys.Right && e.TableControl.CurrentCell.ColIndex == LastColIndex)
{
e.Inner.Handled = true;
}
}

Best regards,
Haneef

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

;