ClassGridCellElement
Represents the base class for all cells in RadGridView.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridCellElement : ConditionalFormattableGridVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGridVisualElementConditionalFormattableGridVisualElementGridCellElement
Derived Classes:
Implements:
Inherited Members
Constructors
GridCellElement(GridViewColumn, GridRowElement)
Initializes a new instance of the GridCellElement class.
Declaration
public GridCellElement(GridViewColumn column, GridRowElement row)
Parameters
column
An instance of GridViewColumn.
row
An instance of GridRowElement.
Fields
FormatStringProperty
Declaration
public static RadProperty FormatStringProperty
Field Value
IsCurrentColumnProperty
Declaration
public static RadProperty IsCurrentColumnProperty
Field Value
IsCurrentRowProperty
Declaration
public static RadProperty IsCurrentRowProperty
Field Value
IsRowHoveredProperty
Declaration
public static RadProperty IsRowHoveredProperty
Field Value
Properties
CanUpdateInfo
Gets the can update info.
Declaration
protected virtual bool CanUpdateInfo { get; }
Property Value
The can update info.
ColumnIndex
Returns the index of the ColumnInfo in the Columns.
ColumnInfo
Gets the GridViewColumn which the cell belongs to.
Declaration
public virtual GridViewColumn ColumnInfo { get; protected set; }
Property Value
ContextMenu
Gets or sets the context RadDropDownMenu associated with the cell.
Declaration
public virtual RadDropDownMenu ContextMenu { get; set; }
Property Value
Implements
GridViewElement
Gets the grid view element.
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
The grid view element.
IsCurrent
Gets or sets a value indicating whether the cell is the current in the grid.
IsCurrentColumn
Gets or sets a value indicating whether the cell belongs to the current GridViewColumn in the grid.
IsCurrentRow
Gets or sets a value indicating whether the cell belongs to the current GridViewRowInfo in the grid.
IsOddRow
Gets or sets a value indicating whether the cell belongs to an odd row.
IsPinned
Gets or sets a value indicating whether the cell is pinned.
IsRowHovered
Gets or sets a value indicating whether the GridRowElement containing this cell is hovered.
IsSelected
Gets or sets a value indicating whether the cell is selected.
IsSorted
Gets or sets a value indicating whether the GridViewDataColumn containing this cell is sorted.
MasterTemplate
Gets the root template element
Declaration
public MasterGridViewTemplate MasterTemplate { get; }
Property Value
PinPosition
Gets or sets the pin position for the row. When the column is pinned, it cannot be moved from its location when a user scrolls horizontally.
Declaration
public PinnedColumnPosition PinPosition { get; set; }
Property Value
RowElement
Gets the GridRowElement which the cell belongs to.
Declaration
public GridRowElement RowElement { get; protected set; }
Property Value
RowIndex
Returns the index of the cell in the GridViewRowInfo.
RowInfo
Declaration
public virtual GridViewRowInfo RowInfo { get; protected set; }
Property Value
TableElement
Gets the table element.
Declaration
public GridTableElement TableElement { get; }
Property Value
The table element.
UpdatingInfo
Gets or sets the updating info.
Declaration
protected bool UpdatingInfo { get; set; }
Property Value
The updating info.
Value
Gets or sets the value represented by this cell.
ViewTemplate
Declaration
public GridViewTemplate ViewTemplate { get; }
Property Value
Methods
ApplyFormatString(object)
Applies the FormatString to the specified object.
CreateContextMenuItems(RadDropDownMenu)
Creates the context menu items.
Declaration
protected virtual void CreateContextMenuItems(RadDropDownMenu menu)
Parameters
menu
The menu.
CreateTextParams()
Creates the text params.
Declaration
protected override TextParams CreateTextParams()
Returns
Overrides
DisposeManagedResources()
Disposes the managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
GetSearchHighlightRanges()
Gets the search highlight ranges.
Declaration
protected virtual List<CharacterRange> GetSearchHighlightRanges()
Returns
List<CharacterRange>
Initialize(GridViewColumn, GridRowElement)
Initializes the cell with specified column and row
Declaration
public virtual void Initialize(GridViewColumn column, GridRowElement row)
Parameters
column
An instance of GridViewColumn.
row
An instance of GridRowElement.
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the RadElement Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
MergeMenus(IContextMenuManager, params object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)
Parameters
contextMenuManager
The IContextMenuManager to merge with.
parameters
object[]
merge parameters.
Returns
The merged context menu, if successful.
Implements
MergeMenus(IContextMenuProvider, params object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(IContextMenuProvider contextMenuProvider, params object[] parameters)
Parameters
contextMenuProvider
The IContextMenuProvider to merge with.
parameters
object[]
merge parameters.
Returns
The merged context menu, if successful.
Implements
MergeMenus(RadDropDownMenu, params object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(RadDropDownMenu contextMenu, params object[] parameters)
Parameters
contextMenu
The RadDropDownMenu to merge with.
parameters
object[]
merge parameters.
Returns
The merged context menu, if successful.
Implements
OnMouseMove(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnViewCellFormatting(CellFormattingEventArgs)
Raises the event.
Declaration
protected virtual void OnViewCellFormatting(CellFormattingEventArgs e)
Parameters
e
The CellFormattingEventArgs instance containing the event data.
PaintElement(IGraphics, float, SizeF)
Paints the element.
PaintElementSkin(IGraphics)
Provides a routine to paint element's content when system skin appearance is desired.
Declaration
protected override void PaintElementSkin(IGraphics graphics)
Parameters
graphics
Overrides
SetContent()
Sets the value of the cell.
Declaration
public virtual void SetContent()
SetContentCore(object)
Sets the actual text of the cell.
Declaration
protected virtual void SetContentCore(object value)
Parameters
value
ShowContextMenu()
Shows the context menu.
Declaration
protected virtual void ShowContextMenu()
UpdateInfo()
Updates the visual state of the cell.
Declaration
public virtual void UpdateInfo()
UpdateInfoCore()
Updates the visual state of the cell.
Declaration
protected virtual void UpdateInfoCore()