Class
GridViewCellInfo

Represents a data cell in RadGridView that contains information about a specific cell's data, formatting, and state within the grid structure.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridViewCellInfo : IEquatable<GridViewCellInfo>

Inheritance: objectGridViewCellInfo

Derived Classes: GridViewHyperlinkCellInfo

Implements: IEquatable<GridViewCellInfo>

Constructors

GridViewCellInfo(GridViewRowInfo, GridViewColumn, GridViewCellInfoCollection)

Initializes a new instance of the GridViewCellInfo class.

Declaration

cs-api-definition
public GridViewCellInfo(GridViewRowInfo row, GridViewColumn column, GridViewCellInfoCollection owner)

Parameters

row

GridViewRowInfo

The row that this cell belongs to.

column

GridViewColumn

The column that this cell belongs to.

owner

GridViewCellInfoCollection

The collection that owns this cell information.

Properties

ColumnInfo

Gets the column information associated with this cell.

Declaration

cs-api-definition
public GridViewColumn ColumnInfo { get; }

Property Value

GridViewColumn

The GridViewColumn that this cell belongs to.

ErrorText

Gets or sets the error text that should be displayed when the cell data is not correct.

Declaration

cs-api-definition
public string ErrorText { get; set; }

Property Value

string

The error text associated with this cell, or an empty string if there are no errors.

HasStyle

Gets a value indicating whether this cell has custom style information applied.

Declaration

cs-api-definition
public bool HasStyle { get; }

Property Value

bool

true if this cell has custom style information; otherwise, false.

IsCurrent

Gets a value indicating whether this cell is the current cell in the grid.

Declaration

cs-api-definition
public bool IsCurrent { get; }

Property Value

bool

true if this cell is the current cell; otherwise, false.

IsSelected

Gets or sets a value indicating whether this cell is selected.

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

true if this cell is selected; otherwise, false.

ReadOnly

Gets or sets a value indicating whether this cell is read-only.

Declaration

cs-api-definition
public bool ReadOnly { get; set; }

Property Value

bool

true if this cell is read-only and cannot be edited; otherwise, false.

RowInfo

Gets the row information associated with this cell.

Declaration

cs-api-definition
public GridViewRowInfo RowInfo { get; }

Property Value

GridViewRowInfo

The GridViewRowInfo that this cell belongs to.

Style

Gets the style information for this cell.

Declaration

cs-api-definition
public GridViewCellStyle Style { get; }

Property Value

GridViewCellStyle

The GridViewCellStyle that defines the visual appearance of this cell.

Tag

Gets or sets a tag object that can be used to store user data corresponding to this cell.

Declaration

cs-api-definition
public object Tag { get; set; }

Property Value

object

An object that contains user-defined data associated with this cell.

Value

Gets or sets the value contained in this cell.

Declaration

cs-api-definition
public object Value { get; set; }

Property Value

object

The value stored in this cell.

ViewInfo

Gets the view information where this cell appears.

Declaration

cs-api-definition
public GridViewInfo ViewInfo { get; }

Property Value

GridViewInfo

The GridViewInfo that contains this cell.

ViewTemplate

Gets the view template that this cell belongs to.

Declaration

cs-api-definition
public GridViewTemplate ViewTemplate { get; }

Property Value

GridViewTemplate

The GridViewTemplate that contains this cell.

Methods

BeginEdit()

Puts this cell into edit mode, allowing the user to modify its value.

Declaration

cs-api-definition
public void BeginEdit()

EndEdit()

Commits any changes made to this cell and exits edit mode.

Declaration

cs-api-definition
public void EndEdit()

EnsureVisible()

Ensures that this cell is visible in the grid view by scrolling to it if necessary.

Declaration

cs-api-definition
public void EnsureVisible()

Equals(GridViewCellInfo)

Determines whether the specified GridViewCellInfo is equal to the current cell.

Declaration

cs-api-definition
public bool Equals(GridViewCellInfo cellInfo)

Parameters

cellInfo

GridViewCellInfo

The cell information to compare with the current cell.

Returns

bool

true if the specified cell is equal to the current cell; otherwise, false.

Implements IEquatable<GridViewCellInfo>.Equals(GridViewCellInfo)

Equals(object)

Determines whether the specified object is equal to the current GridViewCellInfo.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current cell information.

Returns

bool

true if the specified object is equal to the current cell information; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Serves as the default hash function for this GridViewCellInfo.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current GridViewCellInfo.

Overrides object.GetHashCode()