Back to Devexpress

BaseRow.HasAsChild(BaseRow) Method

windowsforms-devexpress-dot-xtraverticalgrid-dot-rows-dot-baserow-dot-hasaschild-x28-devexpress-dot-xtraverticalgrid-dot-rows-dot-baserow-x29.md

latest2.4 KB
Original Source

BaseRow.HasAsChild(BaseRow) Method

Indicates whether the row has the child row specified.

Namespace : DevExpress.XtraVerticalGrid.Rows

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
public bool HasAsChild(
    BaseRow gridRow
)
vb
Public Function HasAsChild(
    gridRow As BaseRow
) As Boolean

Parameters

NameTypeDescription
gridRowBaseRow

A BaseRow descendant representing the row to test.

|

Returns

TypeDescription
Boolean

true if the row is the parent for the row specified; otherwise false.

|

Remarks

Use this method to determine if the row is a parent for the row specified by the gridRow parameter.

The HasAsChild method calls the specified row’s BaseRow.HasAsParent method and passes the current row as its parameter. As a result, rows are inspected from the level of a row specified by the gridRow parameter to the root level to determine if the current row is on this path.

See Also

ChildRows

HasAsParent(BaseRow)

HasChildren

ParentRow

BaseRow Class

BaseRow Members

DevExpress.XtraVerticalGrid.Rows Namespace