SMART datagrid v.1 > Concepts

Back  Forward

Concepts.Row Model Overview

Grid Row arranges one or more cells horizontally. The type of row is determined by the type of cells being displayed. Data Row arranges one row of DataSet with data cells according to the column layout being displayed in the grid. If complete Row Grouping, Group Header and Footer will be created, and Row Group Header and Row Group Footer will be displayed respectively in that location. 

In addition, when Row Appending or Updating is started, Edit Row will be created temporarily, and once it is completed, the necessary DataRow or Group Rows will be created. The rows of TreeView are the objects of TreeRow

In other words, the grid not only displays the values of DataSet, but also arranges different types of rows according to the state of grid. And, even if Row Grouping is not done, the number or order of DataSet and grid rows will be changed according to the sorting and filtering state of the grid. 

Especially, when Top Row of Grid View or Tree View in row grouping state is collapsed, the hidden child rows will not be included in GridBase.rowCount, and GridRow.index will become -1. Also, you will not be able to get the rows through GridBase.getRow method, but only get them through GroupRow.getChild of Parent Row. 

Each row of the grid has index property which means the current display order. The index of the first row is 0, and it will have a value less than rowCount -1. DataRow displays the value of one row in Data Set and thus has the index of the corresponding row as its dataIndex property. Data Index property value of the grid row which is not DataRow is -1. 

See Also
DataRow
EditRow
TreeRow
GridRow.index
GridBase.rowCount
GridBase.dataRowCount
GroupRow.getChild
GroupRow.collapsed
GroupRow.expanded
GridView
TreeView
Examples
Row Model
Row Grouping
Row Indicator