skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridViewRow

GridViewRow is an user interface (UI) element used as a container for GridViewCells objects.

Inheritance
System.Object
RadRowItem
GridViewRowItem
GridViewRow
GridViewNewRow
TreeListViewRow
Inherited Members
GridViewRowItem.HasHierarchyProperty
GridViewRowItem.IndentLevelProperty
GridViewRowItem.CellLoadedEvent
GridViewRowItem.CellUnloadedEvent
GridViewRowItem.HorizontalGridLinesBrushProperty
GridViewRowItem.HorizontalGridLinesWidthProperty
GridViewRowItem.VerticalGridLinesBrushProperty
GridViewRowItem.VerticalGridLinesWidthProperty
GridViewRowItem.MeasureOverride(Size)
GridViewRowItem.ArrangeOverride(Size)
GridViewRowItem.OnCellLoaded(GridViewCellBase)
GridViewRowItem.OnCellUnloaded(GridViewCellBase)
GridViewRowItem.SetHorizontalScrollOffset(Double)
GridViewRowItem.OnColumnsChanged(ObservableCollection<GridViewColumn>, NotifyCollectionChangedEventArgs)
GridViewRowItem.HasHierarchy
GridViewRowItem.PartDataCellsPresenterName
GridViewRowItem.GridViewDataControl
GridViewRowItem.IndentLevel
GridViewRowItem.Cells
GridViewRowItem.HorizontalOffset
GridViewRowItem.HorizontalGridLinesBrush
GridViewRowItem.HorizontalGridLinesWidth
GridViewRowItem.VerticalGridLinesBrush
GridViewRowItem.VerticalGridLinesWidth
GridViewRowItem.CellLoaded
GridViewRowItem.CellUnloaded
RadRowItem.ItemProperty
RadRowItem.IsAlternatingProperty
RadRowItem.IsCurrentProperty
RadRowItem.IsSelectedProperty
RadRowItem.SelectedEvent
RadRowItem.UnselectedEvent
RadRowItem.IsCurrentChangedEvent
RadRowItem.RowIndicatorVisibilityProperty
RadRowItem.Dispose()
RadRowItem.OnSelected(RadRoutedEventArgs)
RadRowItem.OnUnselected(RadRoutedEventArgs)
RadRowItem.OnIsCurrentChanged(Boolean)
RadRowItem.OnMouseMove(MouseEventArgs)
RadRowItem.IRowItem.get_DataContext()
RadRowItem.IRowItem.set_DataContext(Object)
RadRowItem.Item
RadRowItem.IsAlternating
RadRowItem.RowIndicatorVisibility
RadRowItem.IsSelected
RadRowItem.IsCurrent
RadRowItem.Selected
RadRowItem.Unselected
RadRowItem.IsCurrentChanged
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll

Syntax

public class GridViewRow : GridViewRowItem, IRowItem, IHorizontallyScrollable, ILayoutObserver, IScrollContentElement, IVirtualizedContainer

Constructors

GridViewRow()

Initializes a new instance of the GridViewRow class.

Declaration
public GridViewRow()

Fields

DetailsProviderProperty

Identifies the DetailsProvider dependency property.

Declaration
public static readonly DependencyProperty DetailsProviderProperty
Field Value
System.Windows.DependencyProperty

DetailsTemplateProperty

Identifies the DetailsTemplate dependency property.

Declaration
public static readonly DependencyProperty DetailsTemplateProperty
Field Value
System.Windows.DependencyProperty

DetailsVisibilityProperty

Identifies the DetailsVisibility dependency property.

Declaration
public static readonly DependencyProperty DetailsVisibilityProperty
Field Value
System.Windows.DependencyProperty

DisplayVisualCuesProperty

Identifies the DisplayVisualCues dependency property.

Declaration
public static readonly DependencyProperty DisplayVisualCuesProperty
Field Value
System.Windows.DependencyProperty

ErrorsProperty

Identifies the Errors dependency property.

Declaration
public static readonly DependencyProperty ErrorsProperty
Field Value
System.Windows.DependencyProperty

IsExpandableProperty

Identifies the IsExpandable dependency property.

Declaration
public static readonly DependencyProperty IsExpandableProperty
Field Value
System.Windows.DependencyProperty

IsExpandedChangedEvent

Identifies the IsExpandedChanged routed event.

Declaration
public static readonly RoutedEvent IsExpandedChangedEvent
Field Value
System.Windows.RoutedEvent

IsExpandedChangingEvent

Identifies the IsExpandedChanging routed event.

Declaration
public static readonly RoutedEvent IsExpandedChangingEvent
Field Value
System.Windows.RoutedEvent

IsExpandedProperty

Identifies the IsExpanded dependency property.

Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
System.Windows.DependencyProperty

IsInEditModeProperty

Declaration
public static readonly DependencyProperty IsInEditModeProperty
Field Value
System.Windows.DependencyProperty

IsPinnedProperty

Identifies the IsPinnedProperty dependency property.

Declaration
public static readonly DependencyProperty IsPinnedProperty
Field Value
System.Windows.DependencyProperty

IsValidProperty

Identifies the IsValid dependency property.

Declaration
public static readonly DependencyProperty IsValidProperty
Field Value
System.Windows.DependencyProperty

MouseOverBackgroundProperty

Identifies the MouseOverBackground dependency property.

Declaration
public static readonly DependencyProperty MouseOverBackgroundProperty
Field Value
System.Windows.DependencyProperty

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

Declaration
public static readonly DependencyProperty SelectedBackgroundProperty
Field Value
System.Windows.DependencyProperty

Properties

ActionOnLostFocus

Gets or sets the action on lost focus.

Declaration
public override ActionOnLostFocus ActionOnLostFocus { get; }
Property Value
ActionOnLostFocus

The action on lost focus.

Overrides
RadRowItem.ActionOnLostFocus

ChildDataControls

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.

Declaration
public IList<GridViewDataControl> ChildDataControls { get; }
Property Value
System.Collections.Generic.IList<GridViewDataControl>

DetailsProvider

Gets or sets the DetailsProvider for this row.

Declaration
public IDetailsProvider DetailsProvider { get; }
Property Value
IDetailsProvider

DetailsTemplate

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

Declaration
public DataTemplate DetailsTemplate { get; set; }
Property Value
System.Windows.DataTemplate

DetailsVisibility

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

Declaration
public Visibility? DetailsVisibility { get; set; }
Property Value
System.Nullable<System.Windows.Visibility>

DisplayVisualCues

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

Declaration
public bool DisplayVisualCues { get; }
Property Value
System.Boolean

Errors

Gets the errors via IDataErrorInfo and INotifyDataErrorInfo.

Declaration
public IEnumerable Errors { get; }
Property Value
System.Collections.IEnumerable

The errors.

IsExpandable

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

Declaration
public bool IsExpandable { get; set; }
Property Value
System.Boolean

true if the row is expandable; otherwise, false.

IsExpanded

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

Declaration
public bool IsExpanded { get; set; }
Property Value
System.Boolean

true if the row is expanded; otherwise, false.

IsInEditMode

Declaration
public bool IsInEditMode { get; set; }
Property Value
System.Boolean

IsPinned

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.

Declaration
public bool IsPinned { get; set; }
Property Value
System.Boolean

true if the row is pinned and stays on top or bottom on scrolling; otherwise, false. The registered default is false.

IsValid

Gets a value indicating whether this instance content is valid.

Declaration
public bool IsValid { get; }
Property Value
System.Boolean

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

MouseOverBackground

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

Declaration
public Brush MouseOverBackground { get; set; }
Property Value
System.Windows.Media.Brush

SelectedBackground

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

Declaration
public Brush SelectedBackground { get; set; }
Property Value
System.Windows.Media.Brush

Methods

BeginEdit()

Prepares GridViewRow for edit.

Declaration
public virtual void BeginEdit()

CancelEdit()

Cancels the edit of the row.

Declaration
public virtual void CancelEdit()

CommitEdit()

Commits a currently edited row.

Declaration
public bool CommitEdit()
Returns
System.Boolean

true if successful; otherwise false.

CreateIndentItem()

Creates the item that fills in the indentation.

Declaration
public override ContentControl CreateIndentItem()
Returns
System.Windows.Controls.ContentControl

Overrides
RadRowItem.CreateIndentItem()

CreateItem()

Generates cell containers for GridViewRow.

Declaration
protected override GridViewCellBase CreateItem()
Returns
GridViewCellBase

Overrides
GridViewRowItem.CreateItem()

GetCellFromPropertyName(String)

Finds first GridViewCell which is related to the specified property.

Declaration
public GridViewCell GetCellFromPropertyName(string propertyName)
Parameters
System.String propertyName

Name of the property.

Returns
GridViewCell

IsSelectable()

Determines whether this instance is selectable.

Declaration
protected override bool IsSelectable()
Returns
System.Boolean

true if this instance is selectable; otherwise, false.

Overrides
RadRowItem.IsSelectable()

OnApplyTemplate()

Declaration
public override void OnApplyTemplate()
Overrides
GridViewRowItem.OnApplyTemplate()

OnCreateAutomationPeer()

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

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

The type-specific System.Windows.Automation.Peers.AutomationPeer implementation.

OnHasHierarchyChanged()

Called when HasHierarchy property has changed.

Declaration
protected override void OnHasHierarchyChanged()
Overrides
GridViewRowItem.OnHasHierarchyChanged()

OnInitialized(EventArgs)

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

OnIsAlternatingChanged(Boolean, Boolean)

Called when IsAlternating property changes.

Declaration
protected override void OnIsAlternatingChanged(bool oldValue, bool newValue)
Parameters
System.Boolean oldValue

New value.

System.Boolean newValue

Old value.

Overrides
RadRowItem.OnIsAlternatingChanged(Boolean, Boolean)

OnIsExpandedChanged(Boolean, Boolean)

Called when the GridViewRow's IsExpanded property changes.

Declaration
protected virtual void OnIsExpandedChanged(bool oldValue, bool newValue)
Parameters
System.Boolean oldValue

The old value of the IsExpanded property.

System.Boolean newValue

The new value of the IsExpanded property.

OnItemChanged(Object, Object)

Called when the value of the Item property changes.

Declaration
protected override void OnItemChanged(object oldItem, object newItem)
Parameters
System.Object oldItem

The old value of Item.

System.Object newItem

The new value of Item.

Overrides
GridViewRowItem.OnItemChanged(Object, Object)

OnMouseDoubleClick(MouseButtonEventArgs)

Declaration
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

OnMouseEnter(MouseEventArgs)

Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

Overrides
RadRowItem.OnMouseEnter(MouseEventArgs)

OnMouseLeave(MouseEventArgs)

Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

OnMouseLeftButtonDown(MouseButtonEventArgs)

Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

OnMouseLeftButtonUp(MouseButtonEventArgs)

Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

SelectionPropertyChanged(Object, DependencyPropertyChangedEventArgs)

Called when the selection was changed.

Declaration
protected override void SelectionPropertyChanged(object sender, DependencyPropertyChangedEventArgs rowSelectionArgs)
Parameters
System.Object sender

The sender.

System.Windows.DependencyPropertyChangedEventArgs rowSelectionArgs

The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data.

Overrides
RadRowItem.SelectionPropertyChanged(Object, DependencyPropertyChangedEventArgs)

ToString()

Declaration
public override string ToString()
Returns
System.String

Events

IsExpandedChanged

Occurs when GridViewRow changes its IsExpanded state.

Declaration
public event RoutedEventHandler IsExpandedChanged
Event Type
System.Windows.RoutedEventHandler

IsExpandedChanging

Occurs when GridViewRow is about to change its IsExpanded state.

Declaration
public event EventHandler<CancelRoutedEventArgs> IsExpandedChanging
Event Type
System.EventHandler<CancelRoutedEventArgs>

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.