Class GridRowElement
Represents the base class for all rows in RadGridView.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridRowElement : ConditionalFormattableGridVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider, IVirtualizedElement<GridViewRowInfo>
Constructors
GridRowElement()
Fields
ContainsCurrentCellProperty
ContainsSelectedCellsProperty
DrawBorderOnTopProperty
GridBorderHorizontalColorProperty
GridBorderOnTopProperty
GridBorderVerticalColorProperty
HotTrackingProperty
IsCurrentProperty
IsOddProperty
IsSelectedProperty
RowVisualStateProperty
Properties
CanApplyAlternatingColor
Gets a value indicating whether alternating row color can be applied to the row.
Declaration
protected virtual bool CanApplyAlternatingColor { get; }
Property Value
System.Boolean
|
CanApplyFormatting
Gets a value indicating whether the conditional formatting can be applied to the row.
Declaration
public virtual bool CanApplyFormatting { get; }
Property Value
System.Boolean
|
ContainsCurrentCell
Gets or sets a value indicating whether the row contains the current cell.
Declaration
public virtual bool ContainsCurrentCell { get; set; }
Property Value
System.Boolean
|
ContainsSelectedCells
Gets or sets a value indicating whether the row contains selected cells.
Declaration
public virtual bool ContainsSelectedCells { get; set; }
Property Value
System.Boolean
|
ContextMenu
Gets or sets the context menu
Declaration
public RadDropDownMenu ContextMenu { get; set; }
Property Value
RadDropDownMenu
|
Implements
Data
Gets the associated data.
Declaration
public GridViewRowInfo Data { get; }
Property Value
GridViewRowInfo
The data. |
Implements
DrawBorderOnTop
Gets or sets a value indicating whether the hot tracking behavior is enabled.
Declaration
public virtual bool DrawBorderOnTop { get; set; }
Property Value
System.Boolean
|
GridBorderHorizontalColor
Gets or sets a value indicating the color of row's horizontal border.
Declaration
public virtual Color GridBorderHorizontalColor { get; set; }
Property Value
System.Drawing.Color
|
GridBorderOnTop
Gets or sets a value indicating that the row's border is drawn over the cells.
Declaration
public virtual bool GridBorderOnTop { get; set; }
Property Value
System.Boolean
|
GridBorderVerticalColor
Gets or sets the color of row's vertical border.
Declaration
public virtual Color GridBorderVerticalColor { get; set; }
Property Value
System.Drawing.Color
|
GridViewElement
Gets the grid view element.
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
RadGridViewElement
The grid view element. |
HotTracking
Gets or sets a value indicating whether the hot tracking behavior is enabled.
Declaration
public virtual bool HotTracking { get; set; }
Property Value
System.Boolean
|
IsCurrent
Gets or sets a value indicating whether the row is the current in the RadGridView.
Declaration
public virtual bool IsCurrent { get; set; }
Property Value
System.Boolean
|
IsOdd
Gets or sets a value indicating whether the row has odd position.
Declaration
public virtual bool IsOdd { get; set; }
Property Value
System.Boolean
|
IsSelected
Gets or sets a value indicating the row visual state.
Declaration
public virtual bool IsSelected { get; set; }
Property Value
System.Boolean
|
MasterTemplate
Gets the root template element
Declaration
public MasterGridViewTemplate MasterTemplate { get; }
Property Value
MasterGridViewTemplate
|
RowInfo
Gets the corresponding instance of GridViewRowInfo this row element.
Declaration
public GridViewRowInfo RowInfo { get; protected set; }
Property Value
GridViewRowInfo
|
RowVisualState
Gets or sets a value indicating whether the row is selected.
Declaration
public virtual GridRowElement.RowVisualStates RowVisualState { get; set; }
Property Value
GridRowElement.RowVisualStates
|
TableElement
Gets the table element.
Declaration
public GridTableElement TableElement { get; }
Property Value
GridTableElement
The table element. |
ViewInfo
ViewTemplate
VisualCells
Gets the visual cells.
Declaration
public VisualCellsCollection VisualCells { get; }
Property Value
VisualCellsCollection
The visual cells. |
Methods
ApplyCustomFormatting()
Applies custom formatting to the row.
Declaration
protected virtual void ApplyCustomFormatting()
Attach(GridViewRowInfo, Object)
Attaches the specified data.
Declaration
public virtual void Attach(GridViewRowInfo row, object context)
Parameters
GridViewRowInfo
row
|
System.Object
context
The context. |
Implements
CreateCell(GridViewColumn)
Creates a GridViewRowInfo based on the settings of the corresponding GridViewColumn.
Declaration
public virtual GridCellElement CreateCell(GridViewColumn column)
Parameters
GridViewColumn
column
The GridViewColumn that contains the settings. |
Returns
GridCellElement
An instance of GridCellElement or null. |
Detach()
Detaches this instance.
Declaration
public virtual void Detach()
Implements
DisposeManagedResources()
Disposes the managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
GetCellType(GridViewColumn)
Returns the default cell type to be created based on the settings of the corresponding GridViewColumn.
Declaration
public virtual Type GetCellType(GridViewColumn column)
Parameters
GridViewColumn
column
The GridViewColumn that contains the settings. |
Returns
System.Type
An column type. |
GetVistaVisualStyle()
Gets the VisualStyleElement which describes the appearance in Windows Vista.
Declaration
public override VisualStyleElement GetVistaVisualStyle()
Returns
System.Windows.Forms.VisualStyles.VisualStyleElement
|
Overrides
GetXPVisualStyle()
Gets the VisualStyleElement which represents the current state of this instance for Windows XP.
Declaration
public override VisualStyleElement GetXPVisualStyle()
Returns
System.Windows.Forms.VisualStyles.VisualStyleElement
|
Overrides
Initialize(GridViewRowInfo)
Initializes the row.
Declaration
public virtual void Initialize(GridViewRowInfo rowInfo)
Parameters
GridViewRowInfo
rowInfo
The instance of GridViewRowInfo which the row is associated with. |
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
InitializeRowView(GridTableElement)
Initializes the row view.
Declaration
public virtual void InitializeRowView(GridTableElement tableElement)
Parameters
GridTableElement
tableElement
The instance of IRowView which the row is associated with. |
IsCompatible(GridViewRowInfo, Object)
Determines whether element is compatible with the specified data.
Declaration
public virtual bool IsCompatible(GridViewRowInfo data, object context)
Parameters
GridViewRowInfo
data
The data. |
System.Object
context
The context. |
Returns
System.Boolean
|
Implements
MeasureOverride(SizeF)
Measures the element with the available size.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
Size of the available. |
Returns
System.Drawing.SizeF
|
Overrides
MergeMenus(IContextMenuManager, Object[])
Merges the context menu.
Declaration
public virtual 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. |
Implements
MergeMenus(IContextMenuProvider, Object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(IContextMenuProvider contextMenuProvider, params object[] parameters)
Parameters
IContextMenuProvider
contextMenuProvider
The IContextMenuProvider to merge with. |
System.Object[]
parameters
merge parameters. |
Returns
RadDropDownMenu
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
RadDropDownMenu
contextMenu
The RadDropDownMenu to merge with. |
System.Object[]
parameters
merge parameters. |
Returns
RadDropDownMenu
The merged context menu, if successful. |
Implements
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)
Parameters
RadPropertyChangingEventArgs
e
|
Overrides
OnRowPropertyChanged(PropertyChangedEventArgs)
Occurs when some row property changes its value.
Declaration
protected virtual void OnRowPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
An instance of RadPropertyChangedEventArgs |
OnTemplatePropertyChanged(PropertyChangedEventArgs)
Occurs when some template property changes its value
Declaration
protected virtual void OnTemplatePropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
An instance of PropertyChangedEventArgs |
PostPaintChildren(IGraphics, Rectangle, Single, SizeF)
Declaration
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Drawing.Rectangle
clipRectange
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
ProcessDragDrop(Point, ISupportDrag)
Core logic when a drag-drop is performed over this element. Allows inheritors to provide their own implementations.
Declaration
protected override void ProcessDragDrop(Point dropLocation, ISupportDrag dragObject)
Parameters
System.Drawing.Point
dropLocation
|
ISupportDrag
dragObject
|
Overrides
ProcessDragOver(Point, ISupportDrag)
Determines whether the element may be treated as a drop target during drag-and-drop operation.
Declaration
protected override bool ProcessDragOver(Point currentMouseLocation, ISupportDrag dragObject)
Parameters
System.Drawing.Point
currentMouseLocation
|
ISupportDrag
dragObject
|
Returns
System.Boolean
|
Overrides
Synchronize()
Synchronizes this instance.
Declaration
public virtual void Synchronize()
Implements
UnwireEvents()
Declaration
protected virtual void UnwireEvents()
UpdateCells()
Updates cell layout
Declaration
public virtual void UpdateCells()
UpdateContent()
Updates cell content.
Declaration
public virtual void UpdateContent()
UpdateInfo()
Updates row's visual state.
Declaration
public virtual void UpdateInfo()
WireEvents()
Declaration
protected virtual void WireEvents()