• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

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
0
Seven price
Asked:
Seven price
  • 2
1 Solution
 
Miguel OzSoftware EngineerCommented:
Which page event is this code executed (e.g. page_load)
0
 
srikanthreddyn143Commented:
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
 
srikanthreddyn143Commented:
Above code is just an idea and is for windows forms.
0
 
Seven priceFull StackAuthor Commented:
tks
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now