?
Solved

return validation

Posted on 2011-03-15
4
Medium Priority
?
285 Views
Last Modified: 2012-08-13
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
Comment
Question by:Seven price
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 35142332
Which page event is this code executed (e.g. page_load)
0
 
LVL 11

Accepted Solution

by:
srikanthreddyn143 earned 2000 total points
ID: 35142608
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
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 35142609
Above code is just an idea and is for windows forms.
0
 
LVL 9

Author Closing Comment

by:Seven price
ID: 35180714
tks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question