Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
UltraGrid - First Band Row
posted

how do i get the first row of the band?

rather than looping through each row returned by GetRowEnumerator, I want to get the first row.

For Each band As UltraGridBand In Me.UltraGrid2.DisplayLayout.Bands

band.Columns("GroupID").Hidden = True
band.Columns("CustID").Hidden = True
band.Columns("GroupMasterID").Hidden = True
'Me.UltraGrid1.DisplayLayout.Bands(i).Columns("GroupCustID").Hidden = True

If band.Index > 0 Then
band.ColHeadersVisible = False
End If

For Each row As UltraGridRow In band.GetRowEnumerator(GridRowType.DataRow)

If String.IsNullOrEmpty(row.Cells("FillCycle").Text) Then
band.Columns("FillCycle").Hidden = True
Else
band.Columns("Name").Hidden = True
End If

Next

Next

Thanks

Parents Reply Children
No Data