Class GridCellElement
Represents the base class for all cells in Rad
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridCellElement : ConditionalFormattableGridVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider
Constructors
GridCellElement(GridViewColumn, GridRowElement)
Initializes a new instance of the Grid
Declaration
public GridCellElement(GridViewColumn column, GridRowElement row)
Parameters
Grid An instance of Grid |
Grid An instance of Grid |
Fields
FormatStringProperty
IsCurrentColumnProperty
IsCurrentProperty
IsCurrentRowProperty
IsOddRowProperty
IsPinnedProperty
IsReadOnlyProperty
IsRowHoveredProperty
IsSelectedProperty
IsSortedProperty
oldContextMenu
PinPositionProperty
Properties
CanUpdateInfo
Gets the can update info.
Declaration
protected virtual bool CanUpdateInfo { get; }
Property Value
System. The can update info. |
ColumnIndex
Returns the index of the Column
Declaration
public int ColumnIndex { get; }
Property Value
System.
|
ColumnInfo
Gets the Grid
Declaration
public virtual GridViewColumn ColumnInfo { get; protected set; }
Property Value
ContextMenu
Gets or sets the context Rad
Declaration
public virtual RadDropDownMenu ContextMenu { get; set; }
Property Value
Implements
FormatString
Gets or sets the format string to be used for the cell's value.
Declaration
public virtual string FormatString { get; set; }
Property Value
System.
|
GridViewElement
Gets the grid view element.
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
Rad The grid view element. |
IsCurrent
Gets or sets a value indicating whether the cell is the current in the grid.
Declaration
public virtual bool IsCurrent { get; set; }
Property Value
System.
|
IsCurrentColumn
Gets or sets a value indicating whether the cell belongs to the current Grid
Declaration
public virtual bool IsCurrentColumn { get; set; }
Property Value
System.
|
IsCurrentRow
Gets or sets a value indicating whether the cell belongs to the current Grid
Declaration
public virtual bool IsCurrentRow { get; set; }
Property Value
System.
|
IsOddRow
Gets or sets a value indicating whether the cell belongs to an odd row.
Declaration
public virtual bool IsOddRow { get; set; }
Property Value
System.
|
IsPinned
Gets or sets a value indicating whether the cell is pinned.
Declaration
public virtual bool IsPinned { get; set; }
Property Value
System.
|
IsRowHovered
Gets or sets a value indicating whether the Grid
Declaration
public virtual bool IsRowHovered { get; set; }
Property Value
System.
|
IsSelected
Gets or sets a value indicating whether the cell is selected.
Declaration
public virtual bool IsSelected { get; set; }
Property Value
System.
|
IsSorted
Gets or sets a value indicating whether the Grid
Declaration
public virtual bool IsSorted { get; set; }
Property Value
System.
|
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 Grid
Declaration
public GridRowElement RowElement { get; protected set; }
Property Value
RowIndex
Returns the index of the cell in the Grid
Declaration
public int RowIndex { get; }
Property Value
System.
|
RowInfo
Declaration
public virtual GridViewRowInfo RowInfo { get; protected set; }
Property Value
TableElement
Gets the table element.
Declaration
public GridTableElement TableElement { get; }
Property Value
Grid The table element. |
UpdatingInfo
Gets or sets the updating info.
Declaration
protected bool UpdatingInfo { get; set; }
Property Value
System. The updating info. |
Value
Gets or sets the value represented by this cell.
Declaration
public virtual object Value { get; set; }
Property Value
System.
|
ViewInfo
ViewTemplate
Methods
ApplyFormatString(Object)
Applies the Format
Declaration
protected virtual string ApplyFormatString(object value)
Parameters
System.
|
Returns
System.
|
CreateContextMenuItems(RadDropDownMenu)
Creates the context menu items.
Declaration
protected virtual void CreateContextMenuItems(RadDropDownMenu menu)
Parameters
Rad 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
System.
|
Initialize(GridViewColumn, GridRowElement)
Initializes the cell with specified column and row
Declaration
public virtual void Initialize(GridViewColumn column, GridRowElement row)
Parameters
Grid An instance of Grid |
Grid An instance of Grid |
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 Rad
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Rad |
Returns
System. 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, Object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)
Parameters
IContext The IContext |
System. merge parameters. |
Returns
Rad The merged context menu, if successfull. |
Implements
MergeMenus(IContextMenuProvider, Object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(IContextMenuProvider contextMenuProvider, params object[] parameters)
Parameters
IContext The IContext |
System. merge parameters. |
Returns
Rad The merged context menu, if successful. |
Implements
MergeMenus(RadDropDownMenu, Object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(RadDropDownMenu contextMenu, params object[] parameters)
Parameters
Rad The Rad |
System. merge parameters. |
Returns
Rad The merged context menu, if successful. |
Implements
OnMouseMove(MouseEventArgs)
Raises the Mouse
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System. The System. |
Overrides
OnViewCellFormatting(CellFormattingEventArgs)
Raises the View
Declaration
protected virtual void OnViewCellFormatting(CellFormattingEventArgs e)
Parameters
Cell The Cell |
PaintElement(IGraphics, Single, SizeF)
Paints the element.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
The graphics. |
System. The angle. |
System. The scale. |
Overrides
PaintElementSkin(IGraphics)
Provides a routine to paint element's content when system skin appearance is desired.
Declaration
protected override void PaintElementSkin(IGraphics graphics)
Parameters
IGraphics
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
System.
|
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()