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.

Portrait versus Landscape

Thread ID:

Created:

Updated:

Platform:

Replies:

13862 May 12,2004 10:37 AM May 27,2004 01:33 PM Windows Forms 4
loading
Tags: GridControl
Corinne
Asked On May 12, 2004 10:37 AM

Hi, some of our users want the rows and columns exchanged - is there an easy way to do this? thanks, Corinne

Administrator [Syncfusion]
Replied On May 12, 2004 01:01 PM

You can do this by handling the virtual grid events and fliiping th erows of the row and columns. Here is a little sample. forum_swapRowsCols_5073.zip

Corinne Muir
Replied On May 27, 2004 10:36 AM

Thanks Clay - this works great. They now have one more issue - the enter key should move to the "next" cell. When in portrait mode this will be the cell to the right (which is the default behaviour) but when its landscape mode, we would like the enter key to move to the next cell below. Is there an easy way to handle this for virtual grids? thanks, Corinne >You can do this by handling the virtual grid events and fliiping th erows of the row and columns. Here is a little sample. > >forum_swapRowsCols_5073.zip > >

Administrator [Syncfusion]
Replied On May 27, 2004 10:40 AM

You can conditionally set the this.gridDataBoundGrid1.Model.Options.EnterKeyBehavior property to control the behavior of the Enter key. So, you can make it conditionally go right or down by setting this property when you flip the grid.

Corinne Muir
Replied On May 27, 2004 01:33 PM

Thanks Clay for the speedy response - it did the trick.

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.

;