I have this code in a Beforeselect changed event - and it works fine for the parent rows, but how do I access the child bands?
' loop through all parent band(0) rows
For Each rowSelected In Me.UltraGrid1.Rows
If rowSelected.Activated = True Then
rowSelected.Activated = False
rowSelected.Appearance.BackColor = Color.White
End If
THIS GIVES AN ERROR - WANTS A 'NEW' KEYWORD.....
For Each band In Me.UltraGrid1.Rows.ParentRow.ChildBands
Case 1
End Select
Next
Beverly,
I'm not quite sure what you want to do in this code, but if you want to loop through all the rows in the grid, i.e., all the parent rows and all the child rows then instead of looping throught the Rows collection of UltraGrid1 you should loop through
Me.UltraGrid1.Rows.GetFilteredInNonGroupByRows
Try that and let me know how it goes.
Did my suggestion work for you?