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, 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
|
GridRowElement
row
|
Fields
ContainsErrorsProperty
IsFirstDataCellProperty
IsInEditModeProperty
IsLastDataCellProperty
Properties
ContainsErrors
Gets a value indicating that cell's value is invalid
Declaration
public bool ContainsErrors { get; }
Property Value
System.Boolean
|
DataColumnInfo
Gets the data column info.
Declaration
protected GridViewDataColumn DataColumnInfo { get; }
Property Value
GridViewDataColumn
The data column info. |
Editor
Gets the editor.
Declaration
public virtual IInputEditor Editor { get; }
Property Value
IInputEditor
The editor. |
Implements
ExpanderItem
Gets a value that indicates self-referencing expander element associated with the cell.
Declaration
public GridExpanderItem ExpanderItem { get; }
Property Value
GridExpanderItem
|
IsEditable
Gets a value indicating whether the cell is editable.
Declaration
public virtual bool IsEditable { get; }
Property Value
System.Boolean
The is editable. |
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 where 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 first data cell in the row.
Declaration
public virtual bool IsLastDataCell { get; }
Property Value
System.Boolean
|
SelfReferenceLayout
Gets the self reference layout instance SelfReferenceCellLayout when the RadGridView is bound to self-reference data source
Declaration
public SelfReferenceCellLayout SelfReferenceLayout { get; }
Property Value
SelfReferenceCellLayout
The self reference layout. |
SupportsConditionalFormatting
Determines whether the 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
|
Overrides
Methods
AddEditor(IInputEditor)
Adds the editor.
Declaration
public virtual void AddEditor(IInputEditor editor)
Parameters
IInputEditor
editor
The editor. |
Implements
ApplyFormatString(Object)
Applies the FormatString to the specified object.
Declaration
protected override string ApplyFormatString(object value)
Parameters
System.Object
value
|
Returns
System.String
|
Overrides
ArrangeEditorElement(SizeF, RectangleF)
Arranges the editor element.
Declaration
protected virtual void ArrangeEditorElement(SizeF finalSize, RectangleF clientRect)
Parameters
System.Drawing.SizeF
finalSize
The final size. |
System.Drawing.RectangleF
clientRect
The client rect. |
ArrangeOverride(SizeF)
Arranges the inner elements in the available size.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final size. |
Returns
System.Drawing.SizeF
|
Overrides
ArrangeSelfReferencePanel(SizeF, ref RectangleF)
Arranges the self reference panel.
Declaration
protected virtual void ArrangeSelfReferencePanel(SizeF finalSize, ref RectangleF clientRect)
Parameters
System.Drawing.SizeF
finalSize
The final size. |
System.Drawing.RectangleF
clientRect
The client rect. |
BindColumnProperties()
Binds the column properties.
Declaration
protected override void BindColumnProperties()
Overrides
CalculateDesiredSize(SizeF, SizeF, SizeF)
Calculates the size of the desired.
Declaration
protected override SizeF CalculateDesiredSize(SizeF availableSize, SizeF desiredSize, SizeF elementsDesiredSize)
Parameters
System.Drawing.SizeF
availableSize
Size of the available. |
System.Drawing.SizeF
desiredSize
Size of the desired. |
System.Drawing.SizeF
elementsDesiredSize
Size of the elements desired. |
Returns
System.Drawing.SizeF
|
Overrides
CreateContextMenuItems(RadDropDownMenu)
Creates the context menu items.
Declaration
protected override void CreateContextMenuItems(RadDropDownMenu menu)
Parameters
RadDropDownMenu
menu
The menu. |
Overrides
Detach()
Detaches this instance.
Declaration
public override void Detach()
Overrides
GetClipRect()
Gets the clip rect.
Declaration
protected override RectangleF GetClipRect()
Returns
System.Drawing.RectangleF
|
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 we search. |
Returns
RadItem
An instance of RadItem that represents the editor element. Null if there is no editor element. |
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
Remarks
In this method call to the Measure method of each child must be made.
MergeMenus(IContextMenuManager, Object[])
Merges the context menu.
Declaration
public override RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)
Parameters
IContextMenuManager
contextMenuManager
The IContextMenuManager to merge with. |
System.Object[]
parameters
merge parameters. |
Returns
RadDropDownMenu
The merged context menu, if successful. |
Overrides
NotifyFormatChanged(BaseFormattingObject)
Prepares the element for the formatting.
Declaration
protected override void NotifyFormatChanged(BaseFormattingObject oldFormat)
Parameters
BaseFormattingObject
oldFormat
|
Overrides
OnCellFormatting(CellFormattingEventArgs)
Raises the CellFormatting event.
Declaration
protected virtual void OnCellFormatting(CellFormattingEventArgs e)
Parameters
CellFormattingEventArgs
e
The CellFormattingEventArgs instance containing the event data. |
OnColumnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnColumnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnViewCellFormatting(CellFormattingEventArgs)
Raises the ViewCellFormatting event.
Declaration
protected override void OnViewCellFormatting(CellFormattingEventArgs e)
Parameters
CellFormattingEventArgs
e
The CellFormattingEventArgs instance containing the event data. |
Overrides
RemoveEditor(IInputEditor)
Removes the editor.
Declaration
public virtual void RemoveEditor(IInputEditor editor)
Parameters
IInputEditor
editor
The editor. |
Implements
SetTextAlignment()
Sets the position of the cell content in accordance with the TextAlignment.
Declaration
protected virtual void SetTextAlignment()
ShowContextMenu()
Shows the context menu.
Declaration
protected override void ShowContextMenu()
Overrides
UnbindColumnProperties()
Unbinds the column properties.
Declaration
protected override void UnbindColumnProperties()
Overrides
UpdateErrorInfo(GridViewCellInfo)
Updates the error info.
Declaration
protected virtual void UpdateErrorInfo(GridViewCellInfo cellInfo)
Parameters
GridViewCellInfo
cellInfo
The cell info. |
UpdateInfoCore()
Updates the info core.
Declaration
protected override void UpdateInfoCore()
Overrides
UpdateStyle(GridViewCellInfo)
Updates the style.
Declaration
protected virtual void UpdateStyle(GridViewCellInfo cellInfo)
Parameters
GridViewCellInfo
cellInfo
The cell info. |
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
|