Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web:grid2column [2018/11/29 12:59]
agcyphers [Properties]
web:grid2column [2020/04/16 20:44] (current)
agcyphers [Properties]
Line 16: Line 16:
 ==== Methods ==== ==== Methods ====
 ^ Definition      ^ Description       ^ ^ Definition      ^ Description       ^
-| Constructor( colID as [[http://developer.xojo.com/string|String]], colName as [[http://developer.xojo.com/string|String]] ) | Creates an instance of this class with the parameters as property values. | +| Constructor( colID as String, colName as String ) | Creates an instance of this class with the parameters as property values. | 
  
 ==== Properties ==== ==== Properties ====
 ^ Name      ^ Type       ^ Default Value       ^ Description       ^ ^ Name      ^ Type       ^ Default Value       ^ Description       ^
-| DecimalPlaces | [[http://developer.xojo.com/integer|Integer]] | 4 | Applies only to columns with FormatType Double. |+| 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 [[web:grid2|GraffitiWebGrid]]. | | Editor | GraffitiWebGrid.EditTypes | None | Determines the editor type to be used.  See EditTypes Enumeration of [[web:grid2|GraffitiWebGrid]]. |
-| Focusable | [[http://developer.xojo.com/boolean|Boolean]] | True | Determines whether this column’s cells will accept focus. |+| 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. | | 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. | | HeaderStyle | WebStyle | Nil | Overrides the default style and the StyleHeader property of the containing Grid. |
-| ID | [[http://developer.xojo.com/string|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. | +| 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 | [[http://developer.xojo.com/integer|Integer]] | 0 | The maximum width this column can have within the display. | +| MaxWidth | Integer | 0 | The maximum width this column can have within the display. | 
-| MinWidth | [[http://developer.xojo.com/integer|Integer]] | 0 | The minimum width this column can have within the display. | +| MinWidth | Integer | 0 | The minimum width this column can have within the display. | 
-| Resizeable | [[http://developer.xojo.com/boolean|Boolean]] | False | Determines whether this column can be resized. | +| Resizeable | Boolean | False | Determines whether this column can be resized. | 
-| Selectable | [[http://developer.xojo.com/boolean|Boolean]] | False | Determines whether this column can be selected by clicking the header. | +| Selectable | Boolean | False | Determines whether this column can be selected by clicking the header. | 
-| Sortable | [[http://developer.xojo.com/boolean|Boolean]] | True | Determines whether the user can sort the rows by clicking this column's 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. | | 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. | | 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 | [[http://developer.xojo.com/string|String]] | "" | The displayed title for the column in the header. || Tooltip | [[http://developer.xojo.com/string|String]] | "" | The tip text displayed when the mouse hovers over the column header. | +| Title | String | "" | The displayed title for the column in the header. | 
-| Visible | [[http://developer.xojo.com/boolean|Boolean]] | True | The current visible state of the column. This should not be modified outside of the ShowColumn and HideColumn methods of the grid. | +| Tooltip | String | "" | The tip text displayed when the mouse hovers over the column header. | 
-| Width | [[http://developer.xojo.com/integer|Integer]] | 0 | The starting width for the column. |+| Visible | Boolean | True | The current visible state of the column. | 
 +| Width | Integer | 0 | The width for the column. |
  
 ==== Examples ==== ==== Examples ====
-There are currently no examples for this class.+=== Single Column Style === 
 +You can do this when you create it: 
 +<code xojo>myColumn.Style = myWebStyle</code>
  
 +or at any point after initializtion:
 +
 +<code xojo>Dim myColumn As GraffitiGridColumn = myGrid.Column("ColumnID")
 +If Not IsNull(myColumn) Then
 +  myColumn.Style = myWebStyle
 +End If</code>