wx.GridCtrl.Extended.ColumnProperties Class Reference

Inheritance diagram for wx.GridCtrl.Extended.ColumnProperties:

wx.GridCtrl.Extended.ColumnOrRow wx.ICanBeMadeReadonly

List of all members.

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]


Detailed Description

Descriptor of a column. A column defines cell attribtues for each cell of the column, an optional name, an index, and a title.

Constructor & Destructor Documentation

wx.GridCtrl.Extended.ColumnProperties.ColumnProperties (  ) 

Creates an instance.

wx.GridCtrl.Extended.ColumnProperties.ColumnProperties ( Type  typeConstraint  ) 

Creates an instance.

Parameters:
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.

Parameters:
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.

Parameters:
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.


Property Documentation

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 1Column 2Column 3
11.11213
11.21213
21.12223
21.22223
313233
Now, assign true to the IndexGrouping of column 3 to 0 and update the grid. As a consequence, the table will be displayed differently.
Column 1Column 2
Column 3: 13 
Column 3: 23 
Column 3: 33 
Each of the rows will exhibit a handle to expand subtables. If you expanded all subtables, the grid will be displayed as follows:
Column 1Column 2
Column 3: 13 
11.112
11.212
Column 3: 23 
21.122
21.222
Column 3: 33 
3132
You may use more than one column to divide the grid into subtables. The index defines the order in which the the columns will be used to separate the grid.

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.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads