Class GridViewCellInfo
Represents a data cell in RadGridView that contains information about a specific cell's data, formatting, and state within the grid structure.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewCellInfo : IEquatable<GridViewCellInfo>
Constructors
GridViewCellInfo(GridViewRowInfo, GridViewColumn, GridViewCellInfoCollection)
Initializes a new instance of the GridViewCellInfo class.
Declaration
public GridViewCellInfo(GridViewRowInfo row, GridViewColumn column, GridViewCellInfoCollection owner)
Parameters
GridViewRowInfo
row
The row that this cell belongs to. |
GridViewColumn
column
The column that this cell belongs to. |
GridViewCellInfoCollection
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
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
public string ErrorText { get; set; }
Property Value
System.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
public bool HasStyle { get; }
Property Value
System.Boolean
|
IsCurrent
Gets a value indicating whether this cell is the current cell in the grid.
Declaration
public bool IsCurrent { get; }
Property Value
System.Boolean
|
IsSelected
Gets or sets a value indicating whether this cell is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
System.Boolean
|
ReadOnly
Gets or sets a value indicating whether this cell is read-only.
Declaration
public bool ReadOnly { get; set; }
Property Value
System.Boolean
|
RowInfo
Gets the row information associated with this cell.
Declaration
public GridViewRowInfo RowInfo { get; }
Property Value
GridViewRowInfo
The GridViewRowInfo that this cell belongs to. |
Style
Gets the style information for this cell.
Declaration
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
public object Tag { get; set; }
Property Value
System.Object
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
System.Object
The value stored in this cell. |
ViewInfo
Gets the view information where this cell appears.
Declaration
public GridViewInfo ViewInfo { get; }
Property Value
GridViewInfo
The GridViewInfo that contains this cell. |
ViewTemplate
Gets the view template that this cell belongs to.
Declaration
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
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(Object)
Determines whether the specified System.Object is equal to the current GridViewCellInfo.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The object to compare with the current cell information. |
Returns
System.Boolean
|
Overrides
Equals(GridViewCellInfo)
Determines whether the specified GridViewCellInfo is equal to the current cell.
Declaration
public bool Equals(GridViewCellInfo cellInfo)
Parameters
GridViewCellInfo
cellInfo
The cell information to compare with the current cell. |
Returns
System.Boolean
|
Implements
GetHashCode()
Serves as the default hash function for this GridViewCellInfo.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current GridViewCellInfo. |