SMART datagrid v.1 > Concepts

Back  Forward

Concepts.Column Model Overview

Grid Column is GridColumn object which displays the value of one Data Field of DataSet connected to the grid and manages setting information needed when the user inputs the value in column cells. 

In the grid, one or more columns should be set through GridBase.columns property, and one or more top columns of which visible is true should exist. There can be more than one column which have been connected to the same data field in one grid. 

If use ColumnGroup, you can compose the column group which has been set in the grid in various layouts. The column group arranges one or more column (groups) horizontally or vertically, and the sub column group can also have its sub column (groups). 

The grid column is an object of several column classes which have inherited GridColumn class, and it can be largely divided by ValueColumn which displays the value and ColumnGroup

1. Value Column

renderer which has been set in the columns draws the column cells. The value displayed in the cells can be imported from DataSet or calculated by expression, and can also be set through callback. 

2. Data Column

It inherits Value Column and connects to one field of DataSet to display the value in the cell. And, it can also set editor and display the editor within the cell to update the value. 

3. Seires Column

It inherits Value Column and connects to multiple fields of DataSet to display the value in the cell. 

4. Column Group

It only arranges sub column cells in its cell and does not display the value. Since it can also contain the sub column group, you can implement a very complex layout. 

See Also
GridBase
GridColumn
ValueColumn
DataColumn
SeriesColumn
ColumnGroup
Examples
HelloGrid
ColumnGrouping
SeriesColumn