J6/Grid/Types

From J Wiki
Jump to: navigation, search
J6/Grid | Data Options Types | Actions Events Methods | Class DerivedClass | Hierarchical MultiDimensional MultiLine Virtual | Examples

Cell types are integers defined in option CELLTYPE, as follows:

0 normal cell
100 flat checkbox
101 3d checkbox
200-299 combolist box, where (type-200) is index into CELLITEMS
300-399 combodrop box, where (type-300) is index into CELLITEMS

The range 1-99 is currently unused, but is intended for normal cells where the type indicates specific formatting or validation. For example, this might include a date type.

The range 102-199 is currently unused, but is intended for cells that are drawn on the grid, like the checkbox.

CELLITEMS is a boxed list, where each item is a boxed list of possible values for the control. The corresponding cell of CELLDATA should be one of the possible values in CELLITEMS.