grid cell selection

If I finish editing value in the rightmost column in a grid and hit enter, the selection does not move because the default behavior moves to the right cell and there is no right cell anymore to go to.

How can I modify this behavior so that if the current cell's col index = col count, I will move the selection downward instead of right side?

thanks

1 Reply

JJ Jisha Joy Syncfusion Team August 21, 2009 05:52 AM UTC

Hi Stephen,

Thank you for posting query to us.

The desired behavior can be achieved by setting the WrapCellBehavior property to GridWrapCellBehavior.WrapRow. See the code:

this.gridControl1.Model.Options.WrapCellBehavior = Syncfusion.Windows.Forms.Grid.GridWrapCellBehavior.WrapRow;

Let me know if you have further queries.

Regards,
Jisha

Loader.
Up arrow icon