Solved

VB.net Hide checkbox once product has been sold

Posted on 2009-05-12
2
258 Views
Last Modified: 2012-05-06
I need to figure out how to Hide a product (Exclusive Back Cover) once it has been sold. I know that I will need to query the database and see if BackCover = 1 and if so no longer show the checkbox ckBackCover.

I am not sure how to query the database and search through all records
0
Comment
Question by:Albee_J
2 Comments
 
LVL 3

Accepted Solution

by:
mpeaden2 earned 500 total points
ID: 24366418

please mark as answer if this helps...
'Read all Potting Types and select only distinct
        cmdSql = New SqlCommand("SELECT statement here", sqlCon)
        Dim DA As New SqlDataAdapter(cmdSql)
        Dim DT As New DataTable
        Dim DR As DataRow
        Dim Counter As String = Nothing
        'Fill dataset
        DA.Fill(DT)
        
        For Each DR In DT.Rows
            'Place your show/hide code here
        Next
        'Finshed with Adapter/Datatable
        DA.Dispose()
        DT.Dispose()

Open in new window

0
 

Author Comment

by:Albee_J
ID: 24366499
Thank you!  I will implement and advise.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

839 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