return validation

I have 4 tabs in a infragistics tab. if there is no data then the tab returns 0 rows and the tab is not enabled.

example

 If Not sqlDR.Fill(ds) = Nothing Then
            Me.SecondTab.Tabs(2).Enabled = True
            SecondTab.SelectedIndex = "2"
        ElseIf sqlDR.Fill(ds) = Nothing Then
            Me.SecondTab.Tabs(2).Enabled = False

        End If

how can I return a message if all 4 tabs are enabled = true

I used a label but seems not to be working, and this happens onload
LVL 9
Seven priceFull StackAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
srikanthreddyn143Connect With a Mentor Commented:
Dim bEnabled As Boolean = True

have this piece after you enable or disable your tabs.

            For Each ucTab As Infragistics.Win.UltraWinTabControl.UltraTab In utcTest.Tabs
                If Not ucTab.Enabled Then
                    bEnabled = False
                End If
            Next

If bEnable = true --> All tabs are enabled
0
 
Miguel OzSoftware EngineerCommented:
Which page event is this code executed (e.g. page_load)
0
 
srikanthreddyn143Commented:
Above code is just an idea and is for windows forms.
0
 
Seven priceFull StackAuthor Commented:
tks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.