skip to main content

Controls Reference : GRID : Properties : Data-Types

Data-Types
This property specifies the type and the length of data contained in the Grid control cells. Multiple values can be specified enclosed between parentheses. Values are applied to cells, starting from the first. Data types are represented by single characters optionally followed by a number enclosed between parentheses. This number represents the maximum number of characters the user can enter in the cell. If the character representing the data type is not followed by any number, the user can type a number of characters equal to the column size. The value -1 indicates that the user can type an unlimited number of characters.
Valid values are:
Values can be combined to obtain more accurate filtering.
When even more accurate filtering or formatting is needed, you can display an Entry-Field upon the cell.
Data-Types for date and time
Data types "D" and "E" can be followed by the date format string:
D,format-string
E,format-string
format-string can contain any of the following characters:
Example:
 
Example - Modify a grid to set its column types, alphanumeric, alphanumeric and date
procedure division.
  modify screen-1-gr-1
         column-dividers ( 1 1 1 )
         data-columns ( 1 17 25 )
         display-columns ( 1 21 29 )
         alignment ( "U" "U" "U" )
         data-types ( "X" "X" "D,yyyy/MM/dd" )
         editor-show-always ( 0 0 0 )

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