Every ZeeGrid cell has a type attribute. The cell type is a numeric value that identifies the data type held in it. The types and are defined as follows:
Cells with type value 0 are displayed as unchecked checkboxes.
0 = BOOLEAN FALSE 1 = BOOLEAN TRUE 2 = Text 3 = Numeric 4 = Date 5 = Button 127 = Empty cell
Cells with type value 1 are displayed as checked checkboxes.
Cells with type value 2 are displayed as left justifed (by default) text.
Cells with type value 3 are displayed as right justified (by default) numeric values. Cells of this type also depend on the precision, width, and format attributes to determine how they are displayed in the ZeeGrid.
Cells with a type value 4 are displayed as right justified (by default) date format strings. The displayed format of the date can be changed with the format attribute for the cell.
Cells with a type value 5 are displayed as button controls. The text of the cell becomes the button text. When using button data types, the programmer should take care to assure that the cell is set to readonly by setting the cell's edit attribute to zero.
The value 127 is assigned and used internally to ZeeGrid. You cannot programmatically change a cell type to be 127. The only valid values that you, the programmer, can use are the values 0..5.
When a ZeeGrid column has mixed types within it and is sorted in ascending mode, it is sorted in the following order:
0 = BOOLEAN FALSE 1 = BOOLEAN TRUE 3 & 4 = Numeric and Dates (low to high) 2 & 5 = Text and Buttons (low to high) 127 = Empty cell
ZeeGrid messages that relate to type: