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.

Next cell behavior for a data bound grid

Thread ID:

Created:

Updated:

Platform:

Replies:

14733 Jun 3,2004 06:55 AM Jun 3,2004 07:17 AM Windows Forms 1
loading
Tags: GridControl
Jim Frapper
Asked On June 3, 2004 06:55 AM

When using a databound grid I would like the following behavior when the highlighted cell moves. - When the enter key is pressed the highlighed cell will move down. - When the arrow keys are used, they should behave properly. It seems I would like to use the property EnterKeyBehavior. I cant seem to figure out how to get to this property when using a databound grid. Right now I am using the following event handlers. private void gridExamClinic_QueryNextCurrentCellPosition(object sender, Syncfusion.Windows.Forms.Grid.GridQueryNextCurrentCellPositionEventArgs e) { GridCurrentCell gc = this.gridExamClinic.CurrentCell; gc.MoveTo(e.RowIndex + 1, e.ColIndex - 1); e.Handled = true; } However, using this messes up the arrow key navigation. Any thoughts... JF

Administrator [Syncfusion]
Replied On June 3, 2004 07:17 AM

Try setting this property to see if it gives you what you want. this.gridDataBoundGrid1.Model.Options.EnterKeyBehavior = GridDirectionType.Down;

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.

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.

;