ClassGridViewCellInfo
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
GridViewCellInfo(GridViewRowInfo, GridViewColumn, GridViewCellInfoCollection)
Initializes a new instance of the GridViewCellInfo class.
Declaration
public GridViewCellInfo(GridViewRowInfo row, GridViewColumn column, GridViewCellInfoCollection owner)
Parameters
row
The row that this cell belongs to.
column
The column that this cell belongs to.
owner
The collection that owns this cell information.
Properties
ColumnInfo
Gets the column information associated with this cell.
Declaration
public GridViewColumn ColumnInfo { get; }
Property Value
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
public string ErrorText { get; set; }
Property Value
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
public bool HasStyle { get; }
Property Value
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
public bool IsCurrent { get; }
Property Value
true if this cell is the current cell; otherwise, false.
IsSelected
Gets or sets a value indicating whether this cell is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
true if this cell is selected; otherwise, false.
ReadOnly
Gets or sets a value indicating whether this cell is read-only.
Declaration
public bool ReadOnly { get; set; }
Property Value
true if this cell is read-only and cannot be edited; otherwise, false.
RowInfo
Gets the row information associated with this cell.
Declaration
public GridViewRowInfo RowInfo { get; }
Property Value
The GridViewRowInfo that this cell belongs to.
Style
Gets the style information for this cell.
Declaration
public GridViewCellStyle Style { get; }
Property Value
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
public object Tag { get; set; }
Property Value
An object that contains user-defined data associated with this cell.
Value
Gets or sets the value contained in this cell.
Declaration
public object Value { get; set; }
Property Value
The value stored in this cell.
ViewInfo
Gets the view information where this cell appears.
Declaration
public GridViewInfo ViewInfo { get; }
Property Value
The GridViewInfo that contains this cell.
ViewTemplate
Gets the view template that this cell belongs to.
Declaration
public GridViewTemplate ViewTemplate { get; }
Property Value
The GridViewTemplate that contains this cell.
Methods
BeginEdit()
Puts this cell into edit mode, allowing the user to modify its value.
Declaration
public void BeginEdit()
EndEdit()
Commits any changes made to this cell and exits edit mode.
Declaration
public void EndEdit()
EnsureVisible()
Ensures that this cell is visible in the grid view by scrolling to it if necessary.
Declaration
public void EnsureVisible()
Equals(GridViewCellInfo)
Determines whether the specified GridViewCellInfo is equal to the current cell.
Declaration
public bool Equals(GridViewCellInfo cellInfo)
Parameters
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
Equals(object)
Determines whether the specified object is equal to the current GridViewCellInfo.
GetHashCode()
Serves as the default hash function for this GridViewCellInfo.
Declaration
public override int GetHashCode()
Returns
A hash code for the current GridViewCellInfo.
Overrides