wpf-devexpress-dot-xpf-dot-grid-dot-gridviewhitinfobase-09bb00a7.md
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
public virtual bool InRow { get; }
Public Overridable ReadOnly Property InRow As Boolean
| Type | Description |
|---|---|
| Boolean |
true if the test object is within a row; otherwise, false.
|
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
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
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