Solved

VB.net Hide checkbox once product has been sold

Posted on 2009-05-12
2
259 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
[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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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