Back to Devexpress

GridViewHitInfoBase.InRow Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridviewhitinfobase-09bb00a7.md

latest3.2 KB
Original Source

GridViewHitInfoBase.InRow Property

Gets whether the test object is within a row.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public virtual bool InRow { get; }
vb
Public Overridable ReadOnly Property InRow As Boolean

Property Value

TypeDescription
Boolean

true if the test object is within a row; otherwise, false.

|

Remarks

The InRow property returns true if the test object belongs to a data row (card in card views), group row, auto filter row or new item row.

To obtain the row’s handle, use the GridViewHitInfoBase.RowHandle property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InRow property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-grid-select-child-rows-in-groups-on-click/CS/GridGroupSelect/GroupChildSelector.cs#L33

csharp
TableViewHitInfo hitInfo = view.CalcHitInfo(e.OriginalSource as DependencyObject);
if (hitInfo.InRow && view.Grid.IsGroupRowHandle(hitInfo.RowHandle)) {
    view.Grid.BeginSelection();

wpf-grid-select-child-rows-in-groups-on-click/VB/GridGroupSelect/GroupChildSelector.vb#L38

vb
Dim hitInfo As TableViewHitInfo = view.CalcHitInfo(TryCast(e.OriginalSource, DependencyObject))
If hitInfo.InRow AndAlso view.Grid.IsGroupRowHandle(hitInfo.RowHandle) Then
    view.Grid.BeginSelection()

See Also

GridViewHitInfoBase Class

GridViewHitInfoBase Members

DevExpress.Xpf.Grid Namespace