See Also
Enumerations
Name | Values |
| This class exposes no enumerations. |
Constants
Name | Type | Value |
| | This class exposes no constants. |
Events
Definition | Description |
| This class does not expose any events. |
Methods
Definition | Description |
Constructor( colID as String, colName as String ) | Creates an instance of this class with the parameters as property values. |
Properties
Name | Type | Default Value | Description |
DecimalPlaces | Integer | 4 | Applies only to columns with FormatType Double. |
Editor | GraffitiWebGrid.EditTypes | None | Determines the editor type to be used. See EditTypes Enumeration of GraffitiWebGrid. |
Focusable | Boolean | True | Determines whether this column’s cells will accept focus. |
Formatter | GraffitiWebGrid.FormatTypes | Text | Determines how the values for this column are formatted for display. |
HeaderStyle | WebStyle | Nil | Overrides the default style and the StyleHeader property of the containing Grid. |
ID | String | “” | The identifier for the column’s values. Values should be alphanumeric with no special characters such as underscore(_) or hyphen(-), and are case-sensitive. This should not be changed outside the Constructor. |
MaxWidth | Integer | 0 | The maximum width this column can have within the display. |
MinWidth | Integer | 0 | The minimum width this column can have within the display. |
Resizeable | Boolean | False | Determines whether this column can be resized. |
Selectable | Boolean | False | Determines whether this column can be selected by clicking the header. |
Sortable | Boolean | True | Determines whether the user can sort the rows by clicking this column's header. |
SortDirection ReadOnly | GraffitiWebGrid.SortDirections | None | Returns the current sort direction value. |
Style | WebStyle | Nil | Style applied to row cells in this column. Overrides everything except for style specified by AddCellStyle. |
Tag | Variant | Nil | Use for storing things like your database field key. This value has no functional application beyond being used for your reference. |
Title | String | “” | The displayed title for the column in the header. |
Tooltip | String | “” | The tip text displayed when the mouse hovers over the column header. |
Visible | Boolean | True | The current visible state of the column. |
Width | Integer | 0 | The width for the column. |
Examples
Single Column Style
You can do this when you create it:
myColumn.Style = myWebStyle
or at any point after initializtion:
Dim myColumn As GraffitiGridColumn = myGrid.Column("ColumnID")
If Not IsNull(myColumn) Then
myColumn.Style = myWebStyle
End If