Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Private Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
If Me.CheckBox1.Checked Then
' Expand all the rows. You can pass in true to recursively expand all the
' descendant rows as well.
Me.UltraGrid1.Rows.ExpandAll(False)
Else
' Collapse all the rows. You can pass in true to recursively collapse all the
' descendant rows as well.
Me.UltraGrid1.Rows.CollapseAll(False)
End If
End Sub