Class
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:

cs-api-definition
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

GridViewRow()

Initializes a new instance of the GridViewRow class.

Declaration

cs-api-definition
public GridViewRow()

Fields

DetailsProviderProperty

Identifies the DetailsProvider dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DetailsProviderProperty

Field Value

DependencyProperty

DetailsTemplateProperty

Identifies the DetailsTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DetailsTemplateProperty

Field Value

DependencyProperty

DetailsVisibilityProperty

Identifies the DetailsVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DetailsVisibilityProperty

Field Value

DependencyProperty

DisplayVisualCuesProperty

Identifies the DisplayVisualCues dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayVisualCuesProperty

Field Value

DependencyProperty

ErrorsProperty

Identifies the Errors dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ErrorsProperty

Field Value

DependencyProperty

IsExpandableProperty

Identifies the IsExpandable dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsExpandableProperty

Field Value

DependencyProperty

IsExpandedChangedEvent

Identifies the IsExpandedChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent IsExpandedChangedEvent

Field Value

RoutedEvent

IsExpandedChangingEvent

Identifies the IsExpandedChanging routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent IsExpandedChangingEvent

Field Value

RoutedEvent

IsExpandedProperty

Identifies the IsExpanded dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsExpandedProperty

Field Value

DependencyProperty

IsInEditModeProperty

Declaration

cs-api-definition
public static readonly DependencyProperty IsInEditModeProperty

Field Value

DependencyProperty

IsPinnedProperty

Identifies the IsPinnedProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsPinnedProperty

Field Value

DependencyProperty

IsValidProperty

Identifies the IsValid dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsValidProperty

Field Value

DependencyProperty

MouseOverBackgroundProperty

Identifies the MouseOverBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MouseOverBackgroundProperty

Field Value

DependencyProperty

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedBackgroundProperty

Field Value

DependencyProperty

Properties

ActionOnLostFocus

Gets or sets the action on lost focus.

Declaration

cs-api-definition
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

cs-api-definition
public IList<GridViewDataControl> ChildDataControls { get; }

Property Value

IList<GridViewDataControl>

DetailsProvider

Gets or sets the DetailsProvider for this row.

Declaration

cs-api-definition
public IDetailsProvider DetailsProvider { get; }

Property Value

IDetailsProvider

DetailsTemplate

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

Declaration

cs-api-definition
public DataTemplate DetailsTemplate { get; set; }

Property Value

DataTemplate

DetailsVisibility

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

Declaration

cs-api-definition
public Visibility? DetailsVisibility { get; set; }

Property Value

Visibility?

DisplayVisualCues

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

Declaration

cs-api-definition
public bool DisplayVisualCues { get; }

Property Value

bool

Errors

Gets the errors via IDataErrorInfo and INotifyDataErrorInfo.

Declaration

cs-api-definition
public IEnumerable Errors { get; }

Property Value

IEnumerable

The errors.

IsExpandable

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

Declaration

cs-api-definition
public bool IsExpandable { get; set; }

Property Value

bool

true if the row is expandable; otherwise, false.

IsExpanded

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

Declaration

cs-api-definition
public bool IsExpanded { get; set; }

Property Value

bool

true if the row is expanded; otherwise, false.

IsInEditMode

Declaration

cs-api-definition
public bool IsInEditMode { get; set; }

Property Value

bool

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

cs-api-definition
public bool IsPinned { get; set; }

Property Value

bool

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

cs-api-definition
public bool IsValid { get; }

Property Value

bool

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

cs-api-definition
public Brush MouseOverBackground { get; set; }

Property Value

Brush

SelectedBackground

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

Declaration

cs-api-definition
public Brush SelectedBackground { get; set; }

Property Value

Brush

Methods

BeginEdit()

Prepares GridViewRow for edit.

Declaration

cs-api-definition
public virtual void BeginEdit()

CancelEdit()

Cancels the edit of the row.

Declaration

cs-api-definition
public virtual void CancelEdit()

CommitEdit()

Commits a currently edited row.

Declaration

cs-api-definition
public bool CommitEdit()

Returns

bool

true if successful; otherwise false.

CreateIndentItem()

Creates the item that fills in the indentation.

Declaration

cs-api-definition
public override ContentControl CreateIndentItem()

Returns

ContentControl

Overrides RadRowItem.CreateIndentItem()

CreateItem()

Generates cell containers for GridViewRow.

Declaration

cs-api-definition
protected override GridViewCellBase CreateItem()

Returns

GridViewCellBase

Overrides GridViewRowItem.CreateItem()

GetCellFromPropertyName(string)

Finds first GridViewCell which is related to the specified property.

Declaration

cs-api-definition
public GridViewCell GetCellFromPropertyName(string propertyName)

Parameters

propertyName

string

Name of the property.

Returns

GridViewCell

IsSelectable()

Determines whether this instance is selectable.

Declaration

cs-api-definition
protected override bool IsSelectable()

Returns

bool

true if this instance is selectable; otherwise, false.

Overrides RadRowItem.IsSelectable()

OnApplyTemplate()

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides GridViewRowItem.OnApplyTemplate()

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

OnHasHierarchyChanged()

Called when HasHierarchy property has changed.

Declaration

cs-api-definition
protected override void OnHasHierarchyChanged()

Overrides GridViewRowItem.OnHasHierarchyChanged()

OnInitialized(EventArgs)

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

OnIsAlternatingChanged(bool, bool)

Called when IsAlternating property changes.

Declaration

cs-api-definition
protected override void OnIsAlternatingChanged(bool oldValue, bool newValue)

Parameters

oldValue

bool

New value.

newValue

bool

Old value.

Overrides RadRowItem.OnIsAlternatingChanged(bool, bool)

OnIsExpandedChanged(bool, bool)

Called when the GridViewRow's IsExpanded property changes.

Declaration

cs-api-definition
protected virtual void OnIsExpandedChanged(bool oldValue, bool newValue)

Parameters

oldValue

bool

The old value of the IsExpanded property.

newValue

bool

The new value of the IsExpanded property.

OnItemChanged(object, object)

Called when the value of the Item property changes.

Declaration

cs-api-definition
protected override void OnItemChanged(object oldItem, object newItem)

Parameters

oldItem

object

The old value of Item.

newItem

object

The new value of Item.

Overrides GridViewRowItem.OnItemChanged(object, object)

OnMouseDoubleClick(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnMouseEnter(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

Overrides RadRowItem.OnMouseEnter(MouseEventArgs)

OnMouseLeave(MouseEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseLeftButtonDown(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnMouseLeftButtonUp(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

SelectionPropertyChanged(object, DependencyPropertyChangedEventArgs)

Called when the selection was changed.

Declaration

cs-api-definition
protected override void SelectionPropertyChanged(object sender, DependencyPropertyChangedEventArgs rowSelectionArgs)

Parameters

sender

object

The sender.

rowSelectionArgs

DependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Overrides RadRowItem.SelectionPropertyChanged(object, DependencyPropertyChangedEventArgs)

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Events

IsExpandedChanged

Occurs when GridViewRow changes its IsExpanded state.

Declaration

cs-api-definition
public event RoutedEventHandler IsExpandedChanged

Event Value

RoutedEventHandler

IsExpandedChanging

Occurs when GridViewRow is about to change its IsExpanded state.

Declaration

cs-api-definition
public event EventHandler<CancelRoutedEventArgs> IsExpandedChanging

Event Value

EventHandler<CancelRoutedEventArgs>