Solved

return validation

Posted on 2011-03-15
4
281 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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 …

803 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