GridViewRow
GridViewRow is an user interface (UI) element used as a container for GridViewCells objects.
Definition
Namespace:Telerik.Windows.Controls.GridView
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewRow : GridViewRowItem, IRowItem
Inheritance: objectRadRowItemGridViewRowItemGridViewRow
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewRow class.
public GridViewRow()
Fields
DetailsProviderProperty
DependencyProperty
Identifies the DetailsProvider dependency property.
public static readonly DependencyProperty DetailsProviderProperty
DetailsTemplateProperty
DependencyProperty
Identifies the DetailsTemplate dependency property.
public static readonly DependencyProperty DetailsTemplateProperty
DetailsVisibilityProperty
DependencyProperty
Identifies the DetailsVisibility dependency property.
public static readonly DependencyProperty DetailsVisibilityProperty
DisplayVisualCuesProperty
DependencyProperty
Identifies the DisplayVisualCues dependency property.
public static readonly DependencyProperty DisplayVisualCuesProperty
ErrorsProperty
DependencyProperty
Identifies the Errors dependency property.
public static readonly DependencyProperty ErrorsProperty
HighlightedBackgroundProperty
DependencyProperty
Identifies the HighlightedBackground dependency property.
public static readonly DependencyProperty HighlightedBackgroundProperty
IsExpandableProperty
DependencyProperty
Identifies the IsExpandable dependency property.
public static readonly DependencyProperty IsExpandableProperty
IsExpandedChangedEvent
RoutedEvent
Identifies the IsExpandedChanged routed event.
public static readonly RoutedEvent IsExpandedChangedEvent
IsExpandedChangingEvent
RoutedEvent
Identifies the IsExpandedChanging routed event.
public static readonly RoutedEvent IsExpandedChangingEvent
IsExpandedProperty
DependencyProperty
Identifies the IsExpanded dependency property.
public static readonly DependencyProperty IsExpandedProperty
IsHighlightedProperty
DependencyProperty
Identifies the IsHighlighted dependency property.
public static readonly DependencyProperty IsHighlightedProperty
IsInEditModeProperty
DependencyProperty
public static readonly DependencyProperty IsInEditModeProperty
IsPinnedProperty
DependencyProperty
Identifies the IsPinnedProperty dependency property.
public static readonly DependencyProperty IsPinnedProperty
IsValidProperty
DependencyProperty
Identifies the IsValid dependency property.
public static readonly DependencyProperty IsValidProperty
MouseOverBackgroundProperty
DependencyProperty
Identifies the MouseOverBackground dependency property.
public static readonly DependencyProperty MouseOverBackgroundProperty
SelectedBackgroundProperty
DependencyProperty
Identifies the SelectedBackground dependency property.
public static readonly DependencyProperty SelectedBackgroundProperty
Properties
Gets or sets the action on lost focus.
public override ActionOnLostFocus ActionOnLostFocus { get; }
The action on lost focus.
Overrides:
Gets the child GridViewDataControl instances that wrap child hierarchy tables.
public IList<GridViewDataControl> ChildDataControls { get; }
Gets or sets the DetailsProvider for this row.
public IDetailsProvider DetailsProvider { get; }
DetailsTemplate
DataTemplate
Gets or sets the DataTemplate used to display the details section of a row.
public DataTemplate DetailsTemplate { get; set; }
DetailsVisibility
Visibility?
Gets or sets the Visibility for the details of this row.
public Visibility? DetailsVisibility { get; set; }
Gets a value indicating whether this instance should display visual cues for selection, validation, etc.
public bool DisplayVisualCues { get; }
Gets the errors via IDataErrorInfo and INotifyDataErrorInfo.
public IEnumerable Errors { get; }
The errors.
Gets or sets the Brush that is used to paint the background of the row when it is highlighted.
public Brush HighlightedBackground { get; set; }
Gets or sets a value indicating whether the row is expandable or not (hierarchy).
public bool IsExpandable { get; set; }
true if the row is expandable; otherwise, false.
Gets or sets a value indicating whether the row is expanded or not (hierarchy).
public bool IsExpanded { get; set; }
true if the row is expanded; otherwise, false.
Gets or sets a value indicating whether this GridViewRow is highlighted.
public bool IsHighlighted { get; set; }
true if this GridViewRow is highlighted; otherwise, false.
public bool IsInEditMode { get; set; }
Gets or sets a value that indicates whether the row is pinned or not. If true, the row will stay at the top or bottom while scrolling.
public bool IsPinned { get; set; }
true if the row is pinned and stays on top or bottom on scrolling; otherwise, false. The registered default is false.
Gets a value indicating whether this instance content is valid.
public bool IsValid { get; }
true if this instance content is valid; otherwise, false.
MouseOverBackground
Brush
Gets or sets the Brush that is used to paint the background of the row when it is in MouseOver state.
public Brush MouseOverBackground { get; set; }
SelectedBackground
Brush
Gets or sets the Brush that is used to paint the background of the row when it is selected.
public Brush SelectedBackground { get; set; }
Methods
Prepares GridViewRow for edit.
public virtual void BeginEdit()
Cancels the edit of the row.
public virtual void CancelEdit()
Commits a currently edited row.
CreateIndentItem()
ContentControl
Creates the item that fills in the indentation.
public override ContentControl CreateIndentItem()
ContentControl
Overrides:
Generates cell containers for GridViewRow.
Finds first GridViewCell which is related to the specified property.
public GridViewCell GetCellFromPropertyName(string propertyName)
Name of the property.
Returns:Determines whether this instance is selectable.
protected override bool IsSelectable()
true if this instance is selectable; otherwise, false.
Overrides:
public override void OnApplyTemplate()
Overrides:
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Called when HasHierarchy property has changed.
protected override void OnHasHierarchyChanged()
Overrides:
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
protected override void OnMouseEnter(MouseEventArgs e)
Overrides:
protected override void OnMouseLeave(MouseEventArgs e)
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Called when the selection was changed.
protected override void SelectionPropertyChanged(object sender, DependencyPropertyChangedEventArgs rowSelectionArgs)
The sender.
rowSelectionArgsDependencyPropertyChangedEventArgsThe DependencyPropertyChangedEventArgs instance containing the event data.
Overrides:
Events
IsExpandedChanged
RoutedEventHandler
Occurs when GridViewRow changes its IsExpanded state.
public event RoutedEventHandler IsExpandedChanged
IsExpandedChanging
EventHandler<CancelRoutedEventArgs>
Occurs when GridViewRow is about to change its IsExpanded state.
public event EventHandler<CancelRoutedEventArgs> IsExpandedChanging