skip to main content

Controls Reference : GRID : Styles : Reordering-Columns

Reordering-Columns
When this style is set, the user can change the order of the columns simply by dragging a column to its new position. No additional programming is needed because only the appearance is affected and the program still receives column information as if they were in their original positions.
Refer to the Reordering-Col-Index property for programmatically set or retrieve columns order.
 
Example - Define a grid with reordering-columns style
screen section.
  03 screen-1-gr-1 Grid
     line 5.7
     column 3.1
     size 34.6 cells 
     lines 15.5 cells 
     event procedure screen-1-gr-1-evt-proc
     no-autosel
     centered-headings
     column-headings
     adjustable-rows
     adjustable-columns
     hscroll
     reordering-columns
     lm-on-columns 1
     row-dividers 1
     end-color 9
     heading-color 200
     heading-divider-color 12
     cursor-frame-width 3
     num-col-headings 1
     num-rows 5

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left