GridCellElement
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
Initializes a new instance of the GridCellElement class.
public GridCellElement(GridViewColumn column, GridRowElement row)
An instance of GridViewColumn.
rowGridRowElementAn instance of GridRowElement.
Fields
public static RadProperty FormatStringProperty
public static RadProperty IsCurrentColumnProperty
public static RadProperty IsCurrentProperty
public static RadProperty IsCurrentRowProperty
public static RadProperty IsOddRowProperty
public static RadProperty IsPinnedProperty
public static RadProperty IsReadOnlyProperty
public static RadProperty IsRowHoveredProperty
public static RadProperty IsSelectedProperty
public static RadProperty IsSortedProperty
protected RadDropDownMenu oldContextMenu
public static RadProperty PinPositionProperty
Properties
Gets the can update info.
protected virtual bool CanUpdateInfo { get; }
The can update info.
Returns the index of the ColumnInfo in the Columns.
public int ColumnIndex { get; }
Gets the GridViewColumn which the cell belongs to.
public virtual GridViewColumn ColumnInfo { get; protected set; }
Gets or sets the context RadDropDownMenu associated with the cell.
public virtual RadDropDownMenu ContextMenu { get; set; }
Implements:
Gets the grid view element.
public RadGridViewElement GridViewElement { get; }
The grid view element.
Gets or sets a value indicating whether the cell is the current in the grid.
public virtual bool IsCurrent { get; set; }
Gets or sets a value indicating whether the cell belongs to the current GridViewColumn in the grid.
public virtual bool IsCurrentColumn { get; set; }
Gets or sets a value indicating whether the cell belongs to the current GridViewRowInfo in the grid.
public virtual bool IsCurrentRow { get; set; }
Gets or sets a value indicating whether the cell belongs to an odd row.
public virtual bool IsOddRow { get; set; }
Gets or sets a value indicating whether the cell is pinned.
public virtual bool IsPinned { get; set; }
Gets or sets a value indicating whether the GridRowElement containing this cell is hovered.
public virtual bool IsRowHovered { get; set; }
Gets or sets a value indicating whether the cell is selected.
public virtual bool IsSelected { get; set; }
Gets or sets a value indicating whether the GridViewDataColumn containing this cell is sorted.
public virtual bool IsSorted { get; set; }
Gets the root template element
public MasterGridViewTemplate MasterTemplate { get; }
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.
public PinnedColumnPosition PinPosition { get; set; }
Gets the GridRowElement which the cell belongs to.
public GridRowElement RowElement { get; protected set; }
Returns the index of the cell in the GridViewRowInfo.
public int RowIndex { get; }
public virtual GridViewRowInfo RowInfo { get; protected set; }
Gets the table element.
public GridTableElement TableElement { get; }
The table element.
Gets or sets the updating info.
protected bool UpdatingInfo { get; set; }
The updating info.
Gets or sets the value represented by this cell.
public virtual object Value { get; set; }
public GridViewInfo ViewInfo { get; }
public GridViewTemplate ViewTemplate { get; }
Methods
Creates the context menu items.
protected virtual void CreateContextMenuItems(RadDropDownMenu menu)
The menu.
Creates the text params.
Disposes the managed resources.
protected override void DisposeManagedResources()
Overrides:
Gets the search highlight ranges.
Initializes the cell with specified column and row
public virtual void Initialize(GridViewColumn column, GridRowElement row)
An instance of GridViewColumn.
rowGridRowElementAn instance of GridRowElement.
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.
protected override void InitializeFields()
Overrides:
Measures the space required by the RadElement Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
Merges the context menu.
public virtual RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)
The IContextMenuManager to merge with.
parametersobject[]merge parameters.
Returns:The merged context menu, if successful.
Implements:
Merges the context menu.
public virtual RadDropDownMenu MergeMenus(IContextMenuProvider contextMenuProvider, params object[] parameters)
The IContextMenuProvider to merge with.
parametersobject[]merge parameters.
Returns:The merged context menu, if successful.
Implements:
Merges the context menu.
public virtual RadDropDownMenu MergeMenus(RadDropDownMenu contextMenu, params object[] parameters)
The RadDropDownMenu to merge with.
parametersobject[]merge parameters.
Returns:The merged context menu, if successful.
Implements:
Raises the event.
protected override void OnMouseMove(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Raises the event.
protected virtual void OnViewCellFormatting(CellFormattingEventArgs e)
The CellFormattingEventArgs instance containing the event data.
Provides a routine to paint element's content when system skin appearance is desired.
protected override void PaintElementSkin(IGraphics graphics)
Overrides:
Sets the value of the cell.
public virtual void SetContent()
Sets the actual text of the cell.
Shows the context menu.
protected virtual void ShowContextMenu()
Updates the visual state of the cell.
public virtual void UpdateInfo()
Updates the visual state of the cell.
protected virtual void UpdateInfoCore()