GridRowElement
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
Initializes a new instance of the GridRowElement class.
public GridRowElement()
Fields
Identifies whether the current cell belongs to this row in cell-selection mode.
public static RadProperty ContainsCurrentCellProperty
Identifies whether this row contains any selected cells in cell-selection mode.
public static RadProperty ContainsSelectedCellsProperty
Identifies whether the row border is drawn over its cells.
public static RadProperty DrawBorderOnTopProperty
Identifies the color used for the row's horizontal border.
public static RadProperty GridBorderHorizontalColorProperty
Identifies whether the row border is drawn over the cells.
public static RadProperty GridBorderOnTopProperty
Identifies the color used for the row's vertical border.
public static RadProperty GridBorderVerticalColorProperty
Identifies whether the row is hot-tracked for hover visuals.
public static RadProperty HotTrackingProperty
Identifies whether this row is current in the grid.
public static RadProperty IsCurrentProperty
Identifies whether the row is treated as an odd row for alternating-row styling.
public static RadProperty IsOddProperty
Identifies whether the row is selected.
public static RadProperty IsSelectedProperty
Identifies the combined current, selection, and hover state used for row visuals.
public static RadProperty RowVisualStateProperty
Properties
Gets a value indicating whether alternating row color can be applied to the row.
protected virtual bool CanApplyAlternatingColor { get; }
Gets a value indicating whether the conditional formatting can be applied to the row.
public virtual bool CanApplyFormatting { get; }
Gets or sets a value indicating whether the row contains the current cell.
public virtual bool ContainsCurrentCell { get; set; }
Gets or sets a value indicating whether the row contains selected cells.
public virtual bool ContainsSelectedCells { get; set; }
Gets or sets the context menu
public RadDropDownMenu ContextMenu { get; set; }
Implements:
Gets the associated data.
public GridViewRowInfo Data { get; }
The data.
Implements:
Gets or sets whether the row border is drawn over its cells.
public virtual bool DrawBorderOnTop { get; set; }
Gets or sets a value indicating the color of row's horizontal border.
public virtual Color GridBorderHorizontalColor { get; set; }
Gets or sets a value indicating that the row's border is drawn over the cells.
public virtual bool GridBorderOnTop { get; set; }
Gets or sets the color of row's vertical border.
public virtual Color GridBorderVerticalColor { get; set; }
Gets the grid view element.
public RadGridViewElement GridViewElement { get; }
The grid view element.
Gets or sets a value indicating whether the hot tracking behavior is enabled.
public virtual bool HotTracking { get; set; }
Gets or sets a value indicating whether the row is the current in the RadGridView.
public virtual bool IsCurrent { get; set; }
Gets or sets a value indicating whether the row has odd position.
public virtual bool IsOdd { get; set; }
Gets or sets a value indicating whether the row is selected.
public virtual bool IsSelected { get; set; }
Gets the root template element
public MasterGridViewTemplate MasterTemplate { get; }
Gets the corresponding instance of GridViewRowInfo this row element.
public GridViewRowInfo RowInfo { get; protected set; }
Gets or sets the combined current, selection, and hover state used for row visuals.
public virtual GridRowElement.RowVisualStates RowVisualState { get; set; }
Gets the table element.
public GridTableElement TableElement { get; }
The table element.
public GridViewInfo ViewInfo { get; }
public GridViewTemplate ViewTemplate { get; }
Gets the visual cells.
public VisualCellsCollection VisualCells { get; }
The visual cells.
Methods
Applies custom formatting to the row.
protected virtual void ApplyCustomFormatting()
Attaches the specified data.
public virtual void Attach(GridViewRowInfo row, object context)
The context.
Implements:
Creates a GridViewRowInfo based on the settings of the corresponding GridViewColumn.
public virtual GridCellElement CreateCell(GridViewColumn column)
The GridViewColumn that contains the settings.
Returns:An instance of GridCellElement or null.
Detaches this instance.
public virtual void Detach()
Implements:
Disposes the managed resources.
protected override void DisposeManagedResources()
Overrides:
Returns the default cell type to be created based on the settings of the corresponding GridViewColumn.
public virtual Type GetCellType(GridViewColumn column)
The GridViewColumn that contains the settings.
Returns:An column type.
Gets the VisualStyleElement which describes the appearance in Windows Vista.
Gets the VisualStyleElement which represents the current state of this instance for Windows XP.
Initializes the row.
public virtual void Initialize(GridViewRowInfo rowInfo)
The instance of GridViewRowInfo which the row is associated with.
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.
protected override void InitializeFields()
Overrides:
Initializes the row view.
public virtual void InitializeRowView(GridTableElement tableElement)
The instance of IRowView which the row is associated with.
Determines whether element is compatible with the specified data.
public virtual bool IsCompatible(GridViewRowInfo data, object context)
The data.
contextobjectThe context.
Returns:true if the specified data is compatible; otherwise, false.
Implements:
Merges the context menu.
public virtual RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)
The IContextMenuManager to merge with.
parametersobject[]merge parameters.
Returns:The merged context menu, if successful.
Implements:
Merges the context menu.
public virtual RadDropDownMenu MergeMenus(IContextMenuProvider contextMenuProvider, params object[] parameters)
The IContextMenuProvider to merge with.
parametersobject[]merge parameters.
Returns:The merged context menu, if successful.
Implements:
Merges the context menu.
public virtual RadDropDownMenu MergeMenus(RadDropDownMenu contextMenu, params object[] parameters)
The RadDropDownMenu to merge with.
parametersobject[]merge parameters.
Returns:The merged context menu, if successful.
Implements:
Synchronizes row information and hover visuals when the corresponding row properties change.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property change notification.
Overrides:
Cancels enabling hot tracking when the table has hot tracking disabled.
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)
The pending property change.
Overrides:
Occurs when some row property changes its value.
protected virtual void OnRowPropertyChanged(PropertyChangedEventArgs e)
An instance of RadPropertyChangedEventArgs
Occurs when some template property changes its value
protected virtual void OnTemplatePropertyChanged(PropertyChangedEventArgs e)
An instance of PropertyChangedEventArgs
Raises the row-paint notification after child painting when custom drawing is enabled.
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
The graphics context used to paint the row.
clipRectangeRectangleThe clipping rectangle.
anglefloatThe rotation angle.
scaleSizeFThe scale applied to the row.
Overrides:
Core logic when a drag-drop is performed over this element. Allows inheritors to provide their own implementations.
protected override void ProcessDragDrop(Point dropLocation, ISupportDrag dragObject)
Overrides:
Determines whether the element may be treated as a drop target during drag-and-drop operation.
protected override bool ProcessDragOver(Point currentMouseLocation, ISupportDrag dragObject)
Overrides:
Synchronizes this instance.
public virtual void Synchronize()
Implements:
Removes the row and view-template property-change subscriptions.
protected virtual void UnwireEvents()
Updates cell layout
public virtual void UpdateCells()
Updates cell content.
public virtual void UpdateContent()
Updates row's visual state.
public virtual void UpdateInfo()
Subscribes to property changes on the associated row and view template.
protected virtual void WireEvents()