Class GridDataCellElement
This is the base class for all data bound cells in RadGridView
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridDataCellElement : GridVirtualizedCellElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider, IVirtualizedElement<GridViewColumn>, IEditableCell, IDataConversionInfoProvider, ITypeDescriptorContext, IServiceProvider
Constructors
GridDataCellElement(GridViewColumn, GridRowElement)
Initializes a new instance of the GridDataCellElement class.
Declaration
public GridDataCellElement(GridViewColumn column, GridRowElement row)
Parameters
GridViewColumn
column
The column that this cell belongs to. |
GridRowElement
row
The row that this cell belongs to. |
Fields
ContainsErrorsProperty
Identifies the ContainsErrors dependency property.
Declaration
public static RadProperty ContainsErrorsProperty
Field Value
RadProperty
|
IsFirstDataCellProperty
Identifies the IsFirstDataCell dependency property.
Declaration
public static RadProperty IsFirstDataCellProperty
Field Value
RadProperty
|
IsInEditModeProperty
Identifies the IsInEditMode dependency property.
Declaration
public static RadProperty IsInEditModeProperty
Field Value
RadProperty
|
IsLastDataCellProperty
Identifies the IsLastDataCell dependency property.
Declaration
public static RadProperty IsLastDataCellProperty
Field Value
RadProperty
|
Properties
ContainsErrors
Gets a value indicating whether the cell's value is invalid or contains errors.
Declaration
public bool ContainsErrors { get; }
Property Value
System.Boolean
|
DataColumnInfo
Gets the data column information associated with this cell.
Declaration
protected GridViewDataColumn DataColumnInfo { get; }
Property Value
GridViewDataColumn
The data column information. |
Editor
Gets the current editor associated with this cell.
Declaration
public virtual IInputEditor Editor { get; }
Property Value
IInputEditor
The active editor, or |
Implements
ExpanderItem
Gets the self-referencing expander element associated with the cell.
Declaration
public GridExpanderItem ExpanderItem { get; }
Property Value
GridExpanderItem
The expander item if the cell supports self-referencing; otherwise, |
IsEditable
Gets a value indicating whether the cell is editable.
Declaration
public virtual bool IsEditable { get; }
Property Value
System.Boolean
|
Implements
IsFirstDataCell
Gets or sets a value indicating whether this is the first data cell in the row.
Declaration
public virtual bool IsFirstDataCell { get; }
Property Value
System.Boolean
|
IsInEditMode
Gets a value indicating whether the current cell is in edit mode.
Declaration
public virtual bool IsInEditMode { get; }
Property Value
System.Boolean
|
IsLastDataCell
Gets or sets a value indicating whether this is the last data cell in the row.
Declaration
public virtual bool IsLastDataCell { get; }
Property Value
System.Boolean
|
SelfReferenceLayout
Gets the self reference layout instance when the RadGridView is bound to self-reference data source.
Declaration
public SelfReferenceCellLayout SelfReferenceLayout { get; }
Property Value
SelfReferenceCellLayout
The self reference layout instance, or |
SupportsConditionalFormatting
Gets a value indicating whether this instance supports conditional formatting.
Declaration
public override bool SupportsConditionalFormatting { get; }
Property Value
System.Boolean
|
Overrides
Value
Gets or sets the value represented by this cell.
Declaration
public override object Value { get; set; }
Property Value
System.Object
The value stored in this cell. |
Overrides
Methods
AddEditor(IInputEditor)
Adds an editor to this cell.
Declaration
public virtual void AddEditor(IInputEditor editor)
Parameters
IInputEditor
editor
The editor to add. |
Implements
ApplyFormatString(Object)
Applies the format string to the specified value.
Declaration
protected override string ApplyFormatString(object value)
Parameters
System.Object
value
The value to format. |
Returns
System.String
A formatted string representation of the value. |
Overrides
ArrangeEditorElement(SizeF, RectangleF)
Arranges the editor element within the cell.
Declaration
protected virtual void ArrangeEditorElement(SizeF finalSize, RectangleF clientRect)
Parameters
System.Drawing.SizeF
finalSize
The final size available for arrangement. |
System.Drawing.RectangleF
clientRect
The client rectangle for arrangement. |
ArrangeOverride(SizeF)
Arranges the inner elements within the available size.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final size available for arrangement. |
Returns
System.Drawing.SizeF
The actual size used for arrangement. |
Overrides
ArrangeSelfReferencePanel(SizeF, ref RectangleF)
Arranges the self reference panel within the cell.
Declaration
protected virtual void ArrangeSelfReferencePanel(SizeF finalSize, ref RectangleF clientRect)
Parameters
System.Drawing.SizeF
finalSize
The final size available for arrangement. |
System.Drawing.RectangleF
clientRect
The client rectangle for arrangement. |
BindColumnProperties()
Binds column properties to this cell element.
Declaration
protected override void BindColumnProperties()
Overrides
CalculateDesiredSize(SizeF, SizeF, SizeF)
Calculates the desired size of the element.
Declaration
protected override SizeF CalculateDesiredSize(SizeF availableSize, SizeF desiredSize, SizeF elementsDesiredSize)
Parameters
System.Drawing.SizeF
availableSize
The available size for the element. |
System.Drawing.SizeF
desiredSize
The desired size of the element content. |
System.Drawing.SizeF
elementsDesiredSize
The desired size of child elements. |
Returns
System.Drawing.SizeF
The calculated desired size. |
Overrides
CreateContextMenuItems(RadDropDownMenu)
Creates the context menu items for this cell.
Declaration
protected override void CreateContextMenuItems(RadDropDownMenu menu)
Parameters
RadDropDownMenu
menu
The menu to add items to. |
Overrides
Detach()
Detaches this instance and resets property values to their defaults.
Declaration
public override void Detach()
Overrides
GetClipRect()
Gets the clipping rectangle for this cell element.
Declaration
protected override RectangleF GetClipRect()
Returns
System.Drawing.RectangleF
A System.Drawing.RectangleF representing the clipping rectangle. |
Overrides
GetEditorElement(IInputEditor)
Gets the editor element associated with this cell element.
Declaration
public RadItem GetEditorElement(IInputEditor editor)
Parameters
IInputEditor
editor
The editor which element to search for. |
Returns
RadItem
A RadItem that represents the editor element, or |
InitializeFields()
Initializes the fields.
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
System.Drawing.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
System.Drawing.SizeF
The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
MergeMenus(IContextMenuManager, Object[])
Merges the context menu with the specified context menu manager.
Declaration
public override RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)
Parameters
IContextMenuManager
contextMenuManager
The context menu manager to merge with. |
System.Object[]
parameters
Additional parameters for menu merging. |
Returns
RadDropDownMenu
The merged context menu, if successful; otherwise, |
Overrides
NotifyFormatChanged(BaseFormattingObject)
Notifies the element that the formatting object has changed.
Declaration
protected override void NotifyFormatChanged(BaseFormattingObject oldFormat)
Parameters
BaseFormattingObject
oldFormat
The previous formatting object. |
Overrides
OnCellFormatting(CellFormattingEventArgs)
Raises the cell formatting event.
Declaration
protected virtual void OnCellFormatting(CellFormattingEventArgs e)
Parameters
CellFormattingEventArgs
e
The cell formatting event arguments. |
OnColumnPropertyChanged(RadPropertyChangedEventArgs)
Handles column property changes that affect this cell.
Declaration
protected override void OnColumnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
The property change event arguments. |
Overrides
OnViewCellFormatting(CellFormattingEventArgs)
Raises the OnViewCellFormatting(CellFormattingEventArgs) event.
Declaration
protected override void OnViewCellFormatting(CellFormattingEventArgs e)
Parameters
CellFormattingEventArgs
e
The cell formatting event arguments. |
Overrides
RemoveEditor(IInputEditor)
Removes an editor from this cell.
Declaration
public virtual void RemoveEditor(IInputEditor editor)
Parameters
IInputEditor
editor
The editor to remove. |
Implements
SetTextAlignment()
Sets the text alignment for the cell content based on the column's text alignment property.
Declaration
protected virtual void SetTextAlignment()
ShowContextMenu()
Shows the context menu for this cell.
Declaration
protected override void ShowContextMenu()
Overrides
UnbindColumnProperties()
Unbinds column properties from this cell element.
Declaration
protected override void UnbindColumnProperties()
Overrides
UpdateErrorInfo(GridViewCellInfo)
Updates the error information for the cell.
Declaration
protected virtual void UpdateErrorInfo(GridViewCellInfo cellInfo)
Parameters
GridViewCellInfo
cellInfo
The cell information containing error details. |
UpdateInfoCore()
Updates the info core of the cell element.
Declaration
protected override void UpdateInfoCore()
Overrides
UpdateStyle(GridViewCellInfo)
Updates the visual style of the cell based on the cell information.
Declaration
protected virtual void UpdateStyle(GridViewCellInfo cellInfo)
Parameters
GridViewCellInfo
cellInfo
The cell information containing style properties. |
Explicit Interface Implementations
IServiceProvider.GetService(Type)
Declaration
object IServiceProvider.GetService(Type serviceType)
Parameters
System.Type
serviceType
|
Returns
System.Object
|
Implements
IDataConversionInfoProvider.DataSourceNullValue
Declaration
object IDataConversionInfoProvider.DataSourceNullValue { get; set; }
Returns
System.Object
|
Implements
IDataConversionInfoProvider.DataType
Declaration
Type IDataConversionInfoProvider.DataType { get; set; }
Returns
System.Type
|
Implements
IDataConversionInfoProvider.DataTypeConverter
Declaration
TypeConverter IDataConversionInfoProvider.DataTypeConverter { get; set; }
Returns
System.ComponentModel.TypeConverter
|
Implements
IDataConversionInfoProvider.FormatInfo
Declaration
CultureInfo IDataConversionInfoProvider.FormatInfo { get; set; }
Returns
System.Globalization.CultureInfo
|
Implements
IDataConversionInfoProvider.FormatString
Declaration
string IDataConversionInfoProvider.FormatString { get; set; }
Returns
System.String
|
Implements
IDataConversionInfoProvider.NullValue
Declaration
object IDataConversionInfoProvider.NullValue { get; set; }
Returns
System.Object
|