Home Index General Info API / Developers Manual Demos Download Contact
Constants
 
This section provides a overview of the various constants that are provided in DeepGrid.
The constants are classified into the following categories depending on their area of applicability. Plain string/numeric values equivalent to the Constants value can also be used in methods, but using constants improves readibility and ease of maintainence.
 
Control Constants
Provides constants that are used to define the Column Type
[ Top ]
DG_BOOLEAN Constant for creating a checkbox type column. The value that is submitted when using DG_BOOLEAN is true/false
DG_BUTTON Constant for creating a button control
DG_CHECKBOX Constant that creates a checkbox
DG_FILE Constant for creating a file control
DG_HIDDEN Creates a column with hidden control. Note:Using DG_HIDDEN does not hide the column.
DG_IMAGE Used to create image type column
DG_LABEL Creates a column that contains labels. This is the DEFAULT type. i.e a column of type Label is created if no ColumnType is specified
DG_NUMERIC Creates a column that allows only numbers to be entered
DG_PASSWORD Creates a password field
DG_RADIO Used to create Radio button
DG_READONLY Used to create Readonly fields
DG_RESET Constant for creating a Reset Button
DG_SELECT Used to create Column containing dropdown controls.
DG_SUBMIT Constant for creating a Submit Button
DG_TEXT Constant used to create a textbox.
DG_TEXTAREA Constant for creating a TextArea
DG_TEXTX TEXTeXtension - TEXTX is a control that provides a textbox with facility to store a (text,value) pair
 
Alignment Constants
Provides constants that define the various Alignments
[ Top ]
DG_CENTER Constant for Center Alignment. Equivalent to 'center'
DG_LEFT Left Align Constant. Equivalent to string 'left'
DG_RIGHT Right Align Constant. Equivalent to string 'right'
 
Style Constants
Constants that specify the various styles
[ Top ]
DG_BOLD Constant to denote only Bold Formatting to be applied
DG_BOLDITALIC Constant to denote both Bold and Italic style to be applied
DG_ITALIC Constant to denote only Italics to be applied
DG_NONE Constant to denote No Formatting.
DG_PLAIN Constant to denote No Formatting. This is same as DG_NONE
 
Color Constants
Provides the predefined color constants
[ Top ]
DG_DEFAULT_EVEN Constant that defines the default color for even numbered rows of the grid when AltColor is turned on. The default value is #fff8DD
DG_DEFAULT_ODD Constant that defines the default color for odd numbered rows of the grid when AltColor is turned on. The default value is #fff4E8
DG_NOCOLOR Constant that denotes no color (transparancy) to be applied. This is equivalent to transaparent
 
Column Constants
Constants that define the range of applicability of a style
[ Top ]
DG_APPLY_ALL Constant that is used to apply a style to the whole column.
DG_APPLY_CELL Constant that is used to apply a style only to the cell.
 
Column Attribute Constants
Defines constants that can be used as array indexes in the ColumnDetails Array
[ Top ]
DG_POS_KEY Denotes the position of the Key index in the ColumnDetails Array. Equivalent to index 0
DG_POS_COLUMNNAME Denotes the position of the Column Name index in the ColumnDetails Array. Equivalent to index 1
DG_POS_COLUMNICON Denotes the position of the Column Icon index in the ColumnDetails Array. Equivalent to index 2
DG_POS_WIDTH Denotes the index of the Width property in the ColumnDetails Array. Equivalent to index 3
DG_POS_ALIGNMENT Denotes the position of the Alignment property in the ColumnDetails Array. Equivalent to index 4
DG_POS_COLUMNTYPE Denotes the index of the ColumnType property in the ColumnDetails Array. Equivalent to index 5
DG_POS_DEFAULTVALUE Denotes the position of the default value in the ColumnDetails Array. Equivalent to index 6
DG_POS_EVENTS Denotes the index of the Events in the ColumnDetails Array. Equivalent to index 7
DG_POS_STYLE Denotes the position of the Style index in the ColumnDetails Array. Equivalent to index 8
DG_POS_ICON Denotes the index of the Cell Icon value in the ColumnDetails Array. Equivalent to index 9
DG_POS_COLNUM Denotes the position of Column Number property in the ColumnDetails Array. Equivalent to index 10
DG_POS_VISIBLE indicates the position of the visible property in the ColumnDetails Array. Equivalent to index 11
 
Class ID Constants
Defines the various Class Identification Values.
[ Top ]
DG_CELL Constant that provides the ID of Cell Object
DG_COLUMN Constant that provides the ID of Column Object
DG_COLUMNHEADERS Constant that provides the ID of the ColumnHeaders Object
DG_DEEPGRID Constant that provides the ID of Deepgrid Object
DG_FOOTER Constant that provides the ID of Footer Object
DG_ROW Constant that provides the ID of Rows Object
DG_ROWSET Constant that provides the ID of RowSet Object
Hosted by www.Geocities.ws

1