# Data Items

Rows in **RadGrid** are represented by the **GridItem** class and its descendants. There are two types of rows:

* Static rows

* Dynamic rows

## Static Rows

Static rows are always present in the grid structure, regardless of whether they are visible. Their number is known in advance. This group includes [header and footer rows](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/columns/using-columns), the [CommandItem](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/data-editing/commanditem/overview), the status bar item, and the [pager row](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/functionality/paging/pager-item).

## Dynamic Rows

Each dynamic row in the grid represents a record from the specified [data source](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/data-binding/overview). Dynamic rows are represented by the **GridDataItem** class, which derives from **GridItem**.

Each **GridTableView** has a set of rows in its **Items** collection. These rows are **GridDataItem** instances. The collection does not provide methods to add or remove items, but you can control an item’s content by handling the **ItemCreated** event.

> note
>
> * Only Items bound to the data source (such as normal and alternating rows) are kept in the **Items** collection. The header, footer, pager, filter and separator are not included in this collection.
> * The **ItemsHierarchy** collection contains all Items of the owner's **GridTableView** and all Items of the child views nested in that table view.
> * The **Items** property of **RadGrid** is a reference to the **ItemsHierarchy** property of its **MasterTableView** .>

The number of dynamic rows depends on the number of records in the data source and the number of groups, if [grouping](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/functionality/grouping/overview) is enabled. Dynamic rows consist of **data items**, **nested-view items**, **group-header items**, and **edit-form items**. For examples of these row types, see [Overview of Telerik RadGrid structure](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/structure/radgrid-structure-overview).

Data items can come in two types:

* **Normal Rows** - these are the odd rows of the grid (see rows 1 and 3 below). The appearance of the normal rows is controlled by the **ItemStyle** property.

* **Alternating Rows** - these are the even rows of the grid (see rows 2 and 4 below). The appearance of the alternating rows is controlled by the **AlternatingItemStyle** property.

  ![RadGrid normal and alternating rows with different background styles](https://www.telerik.com/products/aspnet-ajax/documentation/assets/262063762640c7d9f8d469c3bc1bbeb8/grd_normal_alternating_styles.png)

Both **ItemStyle** and **AlternatingItemStyle** are of type **GridTableItemStyle**. For skins with different normal and alternating row styles, you can disable the zebra effect by setting **ClientSettings > EnableAlternatingItems** to `false`.

## See Also

* [Accessing Cells and Rows](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/accessing-values-and-controls/overview)

* [Simple Databinding](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/data-binding/server-side-binding/simple-data-binding)

* [Programmatic Databinding Using NeedDataSource Event](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/data-binding/server-side-binding/programmatic-databinding-using-needdatasource-event)

* [Customizing Row Appearance](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/appearance-and-styling/customizing-row-appearance)

* [RadGrid structure overview](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/structure/radgrid-structure-overview)
