Version

HasParent(UltraGridBand) Method

Returns a Boolean expression indicating whether a row has a parent row.
Syntax
'Declaration
 
Public Overloads Function HasParent( _
   ByVal band As UltraGridBand _
) As Boolean
public bool HasParent( 
   UltraGridBand band
)

Parameters

band
If null will check all bands.

Return Value

true if the row has a parent row. If the ParentRow is null then returns false.
Remarks

Invoke this method to determine whether a row has a parent row. If a parent row exists, this method returns True; otherwise, this method returns False. If you specify an UltraGridBand for the band parameter, the control will determine whether the row has an ancestor row in that band.

If a parent row exists, a reference to it can be returned by invoking the HasParent method.

The HasChild, HasNextSibling, and HasPrevSibling methods can be invoked to determine whether a row has a child row, sibling row above it, and sibling row below it, respectively.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also