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:
public class GridViewCellInfo : IEquatable<GridViewCellInfo>
Inheritance: objectGridViewCellInfo
Derived Classes:
Implements:
Constructors
Initializes a new instance of the GridViewCellInfo class.
public GridViewCellInfo(GridViewRowInfo row, GridViewColumn column, GridViewCellInfoCollection owner)
The row that this cell belongs to.
columnGridViewColumnThe column that this cell belongs to.
ownerGridViewCellInfoCollectionThe collection that owns this cell information.
Properties
Gets the column information associated with this cell.
public GridViewColumn ColumnInfo { get; }
The GridViewColumn that this cell belongs to.
Gets or sets the error text that should be displayed when the cell data is not correct.
public string ErrorText { get; set; }
The error text associated with this cell, or an empty string if there are no errors.
Gets a value indicating whether this cell has custom style information applied.
public bool HasStyle { get; }
true if this cell has custom style information; otherwise, false.
Gets a value indicating whether this cell is the current cell in the grid.
public bool IsCurrent { get; }
true if this cell is the current cell; otherwise, false.
Gets or sets a value indicating whether this cell is selected.
public bool IsSelected { get; set; }
true if this cell is selected; otherwise, false.
Gets or sets a value indicating whether this cell is read-only.
public bool ReadOnly { get; set; }
true if this cell is read-only and cannot be edited; otherwise, false.
Gets the row information associated with this cell.
public GridViewRowInfo RowInfo { get; }
The GridViewRowInfo that this cell belongs to.
Gets the style information for this cell.
public GridViewCellStyle Style { get; }
The GridViewCellStyle that defines the visual appearance of this cell.
Gets or sets a tag object that can be used to store user data corresponding to this cell.
public object Tag { get; set; }
An object that contains user-defined data associated with this cell.
Gets or sets the value contained in this cell.
public object Value { get; set; }
The value stored in this cell.
Gets the view information where this cell appears.
Gets the view template that this cell belongs to.
public GridViewTemplate ViewTemplate { get; }
The GridViewTemplate that contains this cell.
Methods
Puts this cell into edit mode, allowing the user to modify its value.
public void BeginEdit()
Commits any changes made to this cell and exits edit mode.
public void EndEdit()
Ensures that this cell is visible in the grid view by scrolling to it if necessary.
public void EnsureVisible()
Determines whether the specified GridViewCellInfo is equal to the current cell.
public bool Equals(GridViewCellInfo cellInfo)
The cell information to compare with the current cell.
Returns:true if the specified cell is equal to the current cell; otherwise, false.
Implements:
Determines whether the specified object is equal to the current GridViewCellInfo.
Serves as the default hash function for this GridViewCellInfo.
public override int GetHashCode()
A hash code for the current GridViewCellInfo.
Overrides: