Public Member Functions | |
ColumnProperties (string name, Type typeConstraint) | |
ColumnProperties (string name) | |
ColumnProperties (Type typeConstraint) | |
ColumnProperties () | |
Properties | |
string | GridBand [get, set] |
int | IndexGrouping [get, set] |
int | MaxWidth [get, set] |
int | MinWidth [get, set] |
wx.GridCtrl.Extended.ColumnProperties.ColumnProperties | ( | ) |
Creates an instance.
wx.GridCtrl.Extended.ColumnProperties.ColumnProperties | ( | Type | typeConstraint | ) |
Creates an instance.
typeConstraint | The grid will only assign values to this column or row where System.Type,IsInstanceOf(typeConstraint) is true . |
wx.GridCtrl.Extended.ColumnProperties.ColumnProperties | ( | string | name | ) |
Creates an instance.
name | Name of the column. This name can be used in column collections to search for the column. |
wx.GridCtrl.Extended.ColumnProperties.ColumnProperties | ( | string | name, | |
Type | typeConstraint | |||
) |
Creates an instance.
name | Name of the column. This name can be used in column collections to search for the column. | |
typeConstraint | The grid will only assign values to this column or row where System.Type,IsInstanceOf(typeConstraint) is true . |
string wx.GridCtrl.Extended.ColumnProperties.GridBand [get, set] |
The grid band is an optional caption of columns. If columns share the same gird band with their neighbours, the grid control shall display this name like a group of columns and provide the opportunity to disable and enable the whole group. Empty strings shall be ignored here.
int wx.GridCtrl.Extended.ColumnProperties.IndexGrouping [get, set] |
If this is zero or larger, the data of this column will not appear as a column but as a handle to expand or collapse a subtable.
Assume that a table contains the following data:
Column 1 | Column 2 | Column 3 |
11.1 | 12 | 13 |
11.2 | 12 | 13 |
21.1 | 22 | 23 |
21.2 | 22 | 23 |
31 | 32 | 33 |
true
to the IndexGrouping
of column 3 to 0 and update the grid. As a consequence, the table will be displayed differently. Column 1 | Column 2 | |
Column 3: 13 | ||
Column 3: 23 | ||
Column 3: 33 |
Column 1 | Column 2 |
Column 3: 13 | |
11.1 | 12 |
11.2 | 12 |
Column 3: 23 | |
21.1 | 22 |
21.2 | 22 |
Column 3: 33 | |
31 | 32 |
int wx.GridCtrl.Extended.ColumnProperties.MaxWidth [get, set] |
Maximal width of this column. This is initially the maximum integer. This is an upper boundary of the column width.
int wx.GridCtrl.Extended.ColumnProperties.MinWidth [get, set] |
Minimal width of this column. This is initially 10. Column widths can be determined according to the renderers of the contained cells - which means a large effort - or according to the properties associated with a column. This is a lower boundary of the column width. Even user input (dragging the column separator) cannot shrink the width of the column below this.