Class GridRowElement
Represents the base class for all rows in Rad
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, IDrawFillElement, 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.
|
CanApplyFormatting
Gets a value indicating whether the conditional formatting can be applied to the row.
Declaration
public virtual bool CanApplyFormatting { get; }
Property Value
System.
|
ContainsCurrentCell
Gets or sets a value indicating whether the row contains the current cell.
Declaration
public virtual bool ContainsCurrentCell { get; set; }
Property Value
System.
|
ContainsSelectedCells
Gets or sets a value indicating whether the row contains selected cells.
Declaration
public virtual bool ContainsSelectedCells { get; set; }
Property Value
System.
|
ContextMenu
Gets or sets the context menu
Declaration
public RadDropDownMenu ContextMenu { get; set; }
Property Value
Implements
Data
Gets the associated data.
Declaration
public GridViewRowInfo Data { get; }
Property Value
Grid 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.
|
GridBorderHorizontalColor
Gets or sets a value indicating the color of row's horizontal border.
Declaration
public virtual Color GridBorderHorizontalColor { get; set; }
Property Value
System.
|
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.
|
GridBorderVerticalColor
Gets or sets the color of row's vertical border.
Declaration
public virtual Color GridBorderVerticalColor { get; set; }
Property Value
System.
|
GridViewElement
Gets the grid view element.
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
Rad 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.
|
IsCurrent
Gets or sets a value indicating whether the row is the current in the Rad
Declaration
public virtual bool IsCurrent { get; set; }
Property Value
System.
|
IsOdd
Gets or sets a value indicating whether the row has odd position.
Declaration
public virtual bool IsOdd { get; set; }
Property Value
System.
|
IsSelected
Gets or sets a value indicating the row visual state.
Declaration
public virtual bool IsSelected { get; set; }
Property Value
System.
|
MasterTemplate
Gets the root template element
Declaration
public MasterGridViewTemplate MasterTemplate { get; }
Property Value
RowInfo
Gets the corresponding instance of Grid
Declaration
public GridViewRowInfo RowInfo { get; protected set; }
Property Value
RowVisualState
Gets or sets a value indicating whether the row is selected.
Declaration
public virtual GridRowElement.RowVisualStates RowVisualState { get; set; }
Property Value
TableElement
Gets the table element.
Declaration
public GridTableElement TableElement { get; }
Property Value
Grid The table element. |
ViewInfo
ViewTemplate
VisualCells
Gets the visual cells.
Declaration
public VisualCellsCollection VisualCells { get; }
Property Value
Visual 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
Grid
|
System. The context. |
Implements
CreateCell(GridViewColumn)
Creates a Grid
Declaration
public virtual GridCellElement CreateCell(GridViewColumn column)
Parameters
Grid The Grid |
Returns
Grid An instance of Grid |
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 Grid
Declaration
public virtual Type GetCellType(GridViewColumn column)
Parameters
Grid The Grid |
Returns
System. An column type. |
GetVistaVisualStyle()
Gets the VisualStyleElement which describes the appearance in Windows Vista.
Declaration
public override VisualStyleElement GetVistaVisualStyle()
Returns
System.
|
Overrides
GetXPVisualStyle()
Gets the VisualStyleElement which represents the current state of this instance for Windows XP.
Declaration
public override VisualStyleElement GetXPVisualStyle()
Returns
System.
|
Overrides
Initialize(GridViewRowInfo)
Initializes the row.
Declaration
public virtual void Initialize(GridViewRowInfo rowInfo)
Parameters
Grid The 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
InitializeRowView(GridTableElement)
Initializes the row view.
Declaration
public virtual void InitializeRowView(GridTableElement tableElement)
Parameters
Grid The instance of IRow |
IsCompatible(GridViewRowInfo, Object)
Determines whether element is compatible with the specified data.
Declaration
public virtual bool IsCompatible(GridViewRowInfo data, object context)
Parameters
Grid The data. |
System. The context. |
Returns
System.
|
Implements
MeasureOverride(SizeF)
Measures the element with the available size.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. Size of the available. |
Returns
System.
|
Overrides
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 successful. |
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
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)
Parameters
Overrides
OnRowPropertyChanged(PropertyChangedEventArgs)
Occurs when some row property changes its value.
Declaration
protected virtual void OnRowPropertyChanged(PropertyChangedEventArgs e)
Parameters
System. An instance of RadPropertyChangedEventArgs |
OnTemplatePropertyChanged(PropertyChangedEventArgs)
Occurs when some template property changes its value
Declaration
protected virtual void OnTemplatePropertyChanged(PropertyChangedEventArgs e)
Parameters
System. 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.
|
System.
|
System.
|
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.
|
ISupport
|
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.
|
ISupport
|
Returns
System.
|
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()