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 [2019/08/13 16:30] (current)
agcyphers [Examples]
Line 33: Line 33:
 | 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 | [[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. |
 | 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. | | 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. |
 | Width | [[http://​developer.xojo.com/​integer|Integer]] | 0 | The starting width for the column. | | Width | [[http://​developer.xojo.com/​integer|Integer]] | 0 | The starting 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>​