Edit this page


GridViewCellInfo class is the logical representation of a single grid cell. GridViewCellInfo properties include:


RadGridView uses virtualization for its visual elements. This means that only the rows that are currently visible have a visual element. When the grid is scrolled up and down the visual elements are reused. Because of the virtualization, it is safe to use the CellElement only inside the CellFormatting event and only for the current cell. The CellFormatting event is fired every time when the cell's visual state needs to be updated.

GridViewCellInfo also includes an EnsureVisible() method that scrolls the cell into view.

Using GridViewCellInfo

GridViewRowInfo lastRow = radGridView1.Rows[radGridView1.Rows.Count - 1];
GridViewCellInfo cell = lastRow.Cells["BMP"];
if (cell.ColumnInfo.GetType() == typeof(GridViewCheckBoxColumn))
    cell.Value = false;

Dim lastRow As GridViewRowInfo = RadGridView1.Rows(RadGridView1.Rows.Count - 1)
Dim cell As GridViewCellInfo = lastRow.Cells("BMP")
If cell.ColumnInfo.GetType().Equals(GetType(GridViewCheckBoxColumn)) Then
            cell.Value = False
        End If

See Also