Skip to content

Expanded Property

See Also

GridRow Object | TreeColumn Property | GridRecord Expanded Property

See Also


Description

Specifies whether the row is expanded in a tree view.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Expanded() As Boolean

Remarks

If a row has children, then an expand/collapse button is displayed indicating that there are more rows to display. The expanded property can be set to True or False to expand/collapse the child rows. It can also be used to determine if a row is expanded/collapsed.

This property corresponds to the Expanded property of the attached GridRecord. If you change the GridRow Expanded property, the Expanded property of the attached GridRecord is updated with this value.

Using the GridRow Expanded property, you will not have to call the Populate method to see the changes. The GridRow Expanded property should be used if you are expanding or collapsing rows at runtime.

The GridRecord Expanded property should be used if you want a row to be expanded as it is added. This will cause the row to be expanded the first time the Populate method is called. The Populate method will need to be called if you use the GridRecord Expanded property to expand/collapse the rows.

Example

Expanded Sample (Visual Basic)

This sample illustrates how to determine if a record/row has been expanded/collapsed.

' This code will tell us if the 1st record/row is expanded  
Debug.Print wndGridControl.Records(0).Expanded  

' This is another way to access the same data.  
' This code will tell us if the 1st record/row is expanded  
Debug.Print wndGridControl.Rows(0).Expanded

See Also

GridRow Object | TreeColumn Property | GridRecord Expanded Property


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.