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
Solved

return validation

Posted on 2011-03-15
4
282 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:sevensnake77
  • 2
4 Comments
 
LVL 35

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 500 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:sevensnake77
ID: 35180714
tks
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
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).

828 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