New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class GridViewRow : GridViewRowItem, IRowItem

Inheritance: objectRadRowItemGridViewRowItemGridViewRow

Derived Classes: GridViewNewRowTreeListViewRow

Implements: IRowItem

Inherited Members GridViewRowItem.HasHierarchyPropertyGridViewRowItem.IndentLevelPropertyGridViewRowItem.CellLoadedEventGridViewRowItem.CellUnloadedEventGridViewRowItem.HorizontalGridLinesBrushPropertyGridViewRowItem.HorizontalGridLinesWidthPropertyGridViewRowItem.VerticalGridLinesBrushPropertyGridViewRowItem.VerticalGridLinesWidthPropertyGridViewRowItem.MeasureOverride(Size)GridViewRowItem.ArrangeOverride(Size)GridViewRowItem.OnCellLoaded(GridViewCellBase)GridViewRowItem.OnCellUnloaded(GridViewCellBase)GridViewRowItem.SetHorizontalScrollOffset(double)GridViewRowItem.OnColumnsChanged(ObservableCollection<GridViewColumn>, NotifyCollectionChangedEventArgs)GridViewRowItem.HasHierarchyGridViewRowItem.PartDataCellsPresenterNameGridViewRowItem.GridViewDataControlGridViewRowItem.IndentLevelGridViewRowItem.CellsGridViewRowItem.HorizontalOffsetGridViewRowItem.HorizontalGridLinesBrushGridViewRowItem.HorizontalGridLinesWidthGridViewRowItem.VerticalGridLinesBrushGridViewRowItem.VerticalGridLinesWidthGridViewRowItem.CellLoadedGridViewRowItem.CellUnloadedRadRowItem.ItemPropertyRadRowItem.IsAlternatingPropertyRadRowItem.IsCurrentPropertyRadRowItem.IsSelectedPropertyRadRowItem.SelectedEventRadRowItem.UnselectedEventRadRowItem.IsCurrentChangedEventRadRowItem.RowIndicatorVisibilityPropertyRadRowItem.Dispose()RadRowItem.OnSelected(RadRoutedEventArgs)RadRowItem.OnUnselected(RadRoutedEventArgs)RadRowItem.OnIsCurrentChanged(bool)RadRowItem.OnMouseMove(MouseEventArgs)RadRowItem.ItemRadRowItem.IsAlternatingRadRowItem.RowIndicatorVisibilityRadRowItem.IsSelectedRadRowItem.IsCurrentRadRowItem.SelectedRadRowItem.UnselectedRadRowItem.IsCurrentChanged...

Constructors

Initializes a new instance of the GridViewRow class.

C#
public GridViewRow()

Fields

DetailsProviderProperty

DependencyProperty

Identifies the DetailsProvider dependency property.

C#
public static readonly DependencyProperty DetailsProviderProperty

DetailsTemplateProperty

DependencyProperty

Identifies the DetailsTemplate dependency property.

C#
public static readonly DependencyProperty DetailsTemplateProperty

DetailsVisibilityProperty

DependencyProperty

Identifies the DetailsVisibility dependency property.

C#
public static readonly DependencyProperty DetailsVisibilityProperty

DisplayVisualCuesProperty

DependencyProperty

Identifies the DisplayVisualCues dependency property.

C#
public static readonly DependencyProperty DisplayVisualCuesProperty

ErrorsProperty

DependencyProperty

Identifies the Errors dependency property.

C#
public static readonly DependencyProperty ErrorsProperty

Identifies the HighlightedBackground dependency property.

C#
public static readonly DependencyProperty HighlightedBackgroundProperty

IsExpandableProperty

DependencyProperty

Identifies the IsExpandable dependency property.

C#
public static readonly DependencyProperty IsExpandableProperty

Identifies the IsExpandedChanged routed event.

C#
public static readonly RoutedEvent IsExpandedChangedEvent

Identifies the IsExpandedChanging routed event.

C#
public static readonly RoutedEvent IsExpandedChangingEvent

IsExpandedProperty

DependencyProperty

Identifies the IsExpanded dependency property.

C#
public static readonly DependencyProperty IsExpandedProperty

IsHighlightedProperty

DependencyProperty

Identifies the IsHighlighted dependency property.

C#
public static readonly DependencyProperty IsHighlightedProperty

IsInEditModeProperty

DependencyProperty

C#
public static readonly DependencyProperty IsInEditModeProperty

IsPinnedProperty

DependencyProperty

Identifies the IsPinnedProperty dependency property.

C#
public static readonly DependencyProperty IsPinnedProperty

IsValidProperty

DependencyProperty

Identifies the IsValid dependency property.

C#
public static readonly DependencyProperty IsValidProperty

MouseOverBackgroundProperty

DependencyProperty

Identifies the MouseOverBackground dependency property.

C#
public static readonly DependencyProperty MouseOverBackgroundProperty

SelectedBackgroundProperty

DependencyProperty

Identifies the SelectedBackground dependency property.

C#
public static readonly DependencyProperty SelectedBackgroundProperty

Properties

Gets or sets the action on lost focus.

C#
public override ActionOnLostFocus ActionOnLostFocus { get; }
Property Value:

The action on lost focus.

Overrides: RadRowItem.ActionOnLostFocus

Gets the child GridViewDataControl instances that wrap child hierarchy tables. Note that this collection contains only realized controls. Virtualized rows and rows that have not been expanded will contain an empty collection.

C#
public IList<GridViewDataControl> ChildDataControls { get; }

Gets or sets the DetailsProvider for this row.

C#
public IDetailsProvider DetailsProvider { get; }

DetailsTemplate

DataTemplate

Gets or sets the DataTemplate used to display the details section of a row.

C#
public DataTemplate DetailsTemplate { get; set; }

Gets or sets the Visibility for the details of this row.

C#
public Visibility? DetailsVisibility { get; set; }

Gets a value indicating whether this instance should display visual cues for selection, validation, etc.

C#
public bool DisplayVisualCues { get; }

Gets the errors via IDataErrorInfo and INotifyDataErrorInfo.

C#
public IEnumerable Errors { get; }
Property Value:

The errors.

Gets or sets the Brush that is used to paint the background of the row when it is highlighted.

C#
public Brush HighlightedBackground { get; set; }

Gets or sets a value indicating whether the row is expandable or not (hierarchy).

C#
public bool IsExpandable { get; set; }
Property Value:

true if the row is expandable; otherwise, false.

Gets or sets a value indicating whether the row is expanded or not (hierarchy).

C#
public bool IsExpanded { get; set; }
Property Value:

true if the row is expanded; otherwise, false.

Gets or sets a value indicating whether this GridViewRow is highlighted.

C#
public bool IsHighlighted { get; set; }
Property Value:

true if this GridViewRow is highlighted; otherwise, false.

C#
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.

C#
public bool IsPinned { get; set; }
Property Value:

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.

C#
public bool IsValid { get; }
Property Value:

true if this instance content is valid; otherwise, false.

Gets or sets the Brush that is used to paint the background of the row when it is in MouseOver state.

C#
public Brush MouseOverBackground { get; set; }

Gets or sets the Brush that is used to paint the background of the row when it is selected.

C#
public Brush SelectedBackground { get; set; }

Methods

Prepares GridViewRow for edit.

C#
public virtual void BeginEdit()

Cancels the edit of the row.

C#
public virtual void CancelEdit()

Commits a currently edited row.

C#
public bool CommitEdit()
Returns:

bool

true if successful; otherwise false.

CreateIndentItem()

ContentControl

Creates the item that fills in the indentation.

C#
public override ContentControl CreateIndentItem()
Returns:

ContentControl

Overrides: RadRowItem.CreateIndentItem()

Generates cell containers for GridViewRow.

C#
protected override GridViewCellBase CreateItem()
Returns:

GridViewCellBase

Overrides: GridViewRowItem.CreateItem()

Finds first GridViewCell which is related to the specified property.

C#
public GridViewCell GetCellFromPropertyName(string propertyName)
Parameters:propertyNamestring

Name of the property.

Returns:

GridViewCell

Determines whether this instance is selectable.

C#
protected override bool IsSelectable()
Returns:

bool

true if this instance is selectable; otherwise, false.

Overrides: RadRowItem.IsSelectable()

C#
public override void OnApplyTemplate()

Overrides: GridViewRowItem.OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Called when HasHierarchy property has changed.

C#
protected override void OnHasHierarchyChanged()

Overrides: GridViewRowItem.OnHasHierarchyChanged()

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

Called when IsAlternating property changes.

C#
protected override void OnIsAlternatingChanged(bool oldValue, bool newValue)
Parameters:oldValuebool

New value.

newValuebool

Old value.

Overrides: RadRowItem.OnIsAlternatingChanged(bool, bool)

Called when the GridViewRow's IsExpanded property changes.

C#
protected virtual void OnIsExpandedChanged(bool oldValue, bool newValue)
Parameters:oldValuebool

The old value of the IsExpanded property.

newValuebool

The new value of the IsExpanded property.

Called when the value of the Item property changes.

C#
protected override void OnItemChanged(object oldItem, object newItem)
Parameters:oldItemobject

The old value of Item.

newItemobject

The new value of Item.

Overrides: GridViewRowItem.OnItemChanged(object, object)

C#
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs
C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadRowItem.OnMouseEnter(MouseEventArgs)

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs
C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs
C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

Called when the selection was changed.

C#
protected override void SelectionPropertyChanged(object sender, DependencyPropertyChangedEventArgs rowSelectionArgs)
Parameters:senderobject

The sender.

rowSelectionArgsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Overrides: RadRowItem.SelectionPropertyChanged(object, DependencyPropertyChangedEventArgs)

C#
public override string ToString()
Returns:

string

Events

IsExpandedChanged

RoutedEventHandler

Occurs when GridViewRow changes its IsExpanded state.

C#
public event RoutedEventHandler IsExpandedChanged

IsExpandedChanging

EventHandler<CancelRoutedEventArgs>

Occurs when GridViewRow is about to change its IsExpanded state.

C#
public event EventHandler<CancelRoutedEventArgs> IsExpandedChanging