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
public static RadProperty ContainsCurrentCellProperty
public static RadProperty ContainsSelectedCellsProperty
public static RadProperty DrawBorderOnTopProperty
public static RadProperty GridBorderHorizontalColorProperty
public static RadProperty GridBorderOnTopProperty
public static RadProperty GridBorderVerticalColorProperty
public static RadProperty HotTrackingProperty
public static RadProperty IsCurrentProperty
public static RadProperty IsOddProperty
public static RadProperty IsSelectedProperty
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 a value indicating whether the hot tracking behavior is enabled.
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 the row visual state.
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 a value indicating whether the row is selected.
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:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Called before a property value is changed, allowing for validation or cancellation of text changes.
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)
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
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:
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()
protected virtual void WireEvents()