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. Image for the cookie policy date

Portrait versus Landscape

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

4 Replies

AD Administrator Syncfusion Team May 12, 2004 05:01 PM UTC

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


CM Corinne Muir May 27, 2004 02:36 PM UTC

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 > >


AD Administrator Syncfusion Team May 27, 2004 02:40 PM UTC

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.


CM Corinne Muir May 27, 2004 05:33 PM UTC

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

Loader.
Up arrow icon