![]() |
![]() |
Grid rows are represented with SGRows collection and each row is represented by SGRow object. By manipulating these objects, you can add or remove rows and change row attributes. There are three types of rows: simple rows (sgSimpleRow), group header rows (sgGroupHeader) and group footer rows (sgGroupFooter). Simple row is bound to the data source and it displays data retrieved from the data source. Group header or footer row displays values and calculation results defined in the SGGroup object.
To reference a particular row, you can use row position, row key or row bookmark.
Row position is a current top-to-bottom counted position of a row in a grid. Top-most row has position 0 (zero). Row position can be changed when grid is sorted or when user drags and drops a row in a grid. If a row is hidden, its position is not changed. To access row with its position use row collection's At method.
Row key is a unique number that identifies one row. It is assigned to a row at row creation time and can not be changed. To access row with its key, use Rows(key) syntax.
A bookmark is a variant that uniquely identifies a particular record in a database.
The following list explains how to solve some common row tasks.
To add a row | |
To remove a row |
|
To size a row |
|
To move a row |
|
To hide a row |
|
To change row appearance |
|
See Also
Rows | DataRowCount | Samples - Appearance | Samples - UserDragging