ClassGridRowElement
Represents the base class for all rows in RadGridView.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridRowElement : ConditionalFormattableGridVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider, IVirtualizedElement<GridViewRowInfo>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGridVisualElementConditionalFormattableGridVisualElementGridRowElement
Derived Classes:
Implements:
Inherited Members
Constructors
GridRowElement()
Initializes a new instance of the GridRowElement class.
Declaration
public GridRowElement()
Fields
ContainsCurrentCellProperty
Declaration
public static RadProperty ContainsCurrentCellProperty
Field Value
ContainsSelectedCellsProperty
Declaration
public static RadProperty ContainsSelectedCellsProperty
Field Value
DrawBorderOnTopProperty
Declaration
public static RadProperty DrawBorderOnTopProperty
Field Value
GridBorderHorizontalColorProperty
Declaration
public static RadProperty GridBorderHorizontalColorProperty
Field Value
GridBorderOnTopProperty
Declaration
public static RadProperty GridBorderOnTopProperty
Field Value
GridBorderVerticalColorProperty
Declaration
public static RadProperty GridBorderVerticalColorProperty
Field Value
RowVisualStateProperty
Declaration
public static RadProperty RowVisualStateProperty
Field Value
Properties
CanApplyAlternatingColor
Gets a value indicating whether alternating row color can be applied to the row.
Declaration
protected virtual bool CanApplyAlternatingColor { get; }
Property Value
CanApplyFormatting
Gets a value indicating whether the conditional formatting can be applied to the row.
ContainsCurrentCell
Gets or sets a value indicating whether the row contains the current cell.
Declaration
public virtual bool ContainsCurrentCell { get; set; }
Property Value
ContainsSelectedCells
Gets or sets a value indicating whether the row contains selected cells.
Declaration
public virtual bool ContainsSelectedCells { get; set; }
Property Value
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
The data.
Implements
DrawBorderOnTop
Gets or sets a value indicating whether the hot tracking behavior is enabled.
GridBorderHorizontalColor
Gets or sets a value indicating the color of row's horizontal border.
Declaration
public virtual Color GridBorderHorizontalColor { get; set; }
Property Value
GridBorderOnTop
Gets or sets a value indicating that the row's border is drawn over the cells.
GridBorderVerticalColor
Gets or sets the color of row's vertical border.
Declaration
public virtual Color GridBorderVerticalColor { get; set; }
Property Value
GridViewElement
Gets the grid view element.
Declaration
public RadGridViewElement GridViewElement { get; }
Property Value
The grid view element.
HotTracking
Gets or sets a value indicating whether the hot tracking behavior is enabled.
IsCurrent
Gets or sets a value indicating whether the row is the current in the RadGridView.
IsOdd
Gets or sets a value indicating whether the row has odd position.
IsSelected
Gets or sets a value indicating the row visual state.
MasterTemplate
Gets the root template element
Declaration
public MasterGridViewTemplate MasterTemplate { get; }
Property Value
RowInfo
Gets the corresponding instance of GridViewRowInfo this row element.
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
The table element.
ViewTemplate
Declaration
public GridViewTemplate ViewTemplate { get; }
Property Value
VisualCells
Gets the visual cells.
Declaration
public VisualCellsCollection VisualCells { get; }
Property Value
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
row
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
column
The GridViewColumn that contains the settings.
Returns
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
column
The GridViewColumn that contains the settings.
Returns
An column type.
GetVistaVisualStyle()
Gets the VisualStyleElement which describes the appearance in Windows Vista.
Declaration
public override VisualStyleElement GetVistaVisualStyle()
Returns
Overrides
GetXPVisualStyle()
Gets the VisualStyleElement which represents the current state of this instance for Windows XP.
Declaration
public override VisualStyleElement GetXPVisualStyle()
Returns
Overrides
Initialize(GridViewRowInfo)
Initializes the row.
Declaration
public virtual void Initialize(GridViewRowInfo rowInfo)
Parameters
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
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
data
The data.
context
The context.
Returns
true if the specified data is compatible; otherwise, false.
Implements
MeasureOverride(SizeF)
Measures the element with the available size.
MergeMenus(IContextMenuManager, params object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)
Parameters
contextMenuManager
The IContextMenuManager to merge with.
parameters
object[]
merge parameters.
Returns
The merged context menu, if successful.
Implements
MergeMenus(IContextMenuProvider, params object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(IContextMenuProvider contextMenuProvider, params object[] parameters)
Parameters
contextMenuProvider
The IContextMenuProvider to merge with.
parameters
object[]
merge parameters.
Returns
The merged context menu, if successful.
Implements
MergeMenus(RadDropDownMenu, params object[])
Merges the context menu.
Declaration
public virtual RadDropDownMenu MergeMenus(RadDropDownMenu contextMenu, params object[] parameters)
Parameters
contextMenu
The RadDropDownMenu to merge with.
parameters
object[]
merge parameters.
Returns
The merged context menu, if successful.
Implements
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
Event arguments containing information about the property that changed.
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Called before a property value is changed, allowing for validation or cancellation of text changes.
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)
Parameters
e
Overrides
OnRowPropertyChanged(PropertyChangedEventArgs)
Occurs when some row property changes its value.
Declaration
protected virtual void OnRowPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
An instance of RadPropertyChangedEventArgs
OnTemplatePropertyChanged(PropertyChangedEventArgs)
Occurs when some template property changes its value
Declaration
protected virtual void OnTemplatePropertyChanged(PropertyChangedEventArgs e)
Parameters
e
An instance of PropertyChangedEventArgs
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
dropLocation
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
currentMouseLocation
dragObject
Returns
Overrides
Synchronize()
Synchronizes this instance.
Declaration
public virtual void Synchronize()
Implements
UnwireEvents()
Declaration
protected virtual void UnwireEvents()
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()