RadGrid for ASP.NET

Rows Send comments on this topic.
See Also
Functional overview > Overview of Telerik RadGrid structure > Rows

Glossary Item Box

Rows in Telerik RadGrid are presented by the GridItem objects and its descendants. Each row in the grid represents a record from the specified DataSource. Each GridTableView has a set of rows (Items collection) of type GridItem. The collection does not provide any methods to add or remove items. However, you can control the content of an item by providing a handler for the ItemCreated event.

Note that:

  • only Items bound to the data source (such as normal and alternating rows) are kept in the Telerik.WebControls.RadGrid.Items collection. The header, footer, pager, filter and separator are not included in this collection.
  • the ItemsHierarchy collection contains all Items of the owners GridTablesView and all Items of the children views.
  • the Items property of RadGrid is a reference to the ItemsHierarchy property of its MasterTableView.

Row Types

Generally there are two types of rows (items):

  • Static rows
  • Dynamic rows

Static Rows

These rows are always present in the grid structure regardless of whether they are visible or not. The number of these items is always known. To this group belong Header row, Footer row, Pager row (see below), Filtering row and the CommandItem row.

Dynamic Rows

The number of these items depends on the number of rows (records) in the DataSource and the number of groups (if the grouping is enabled). To this group belong DataItems, NestedViewItems, GroupHeaderItems and EditFormItems.

Pager Row

The Pager is a row which contains the paging navigation. If you want to have your data divided in pages, you should set the AllowPaging Property to true.


Pager Row

 

CommandItem row

The CommandItem is a placeholder for commands that can perform some action on the selected/all items. See the Command reference topic for details about the available commands.

CommandItemTemplate

Row States

There are two special types of row states:

 

 

See Also