Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB.net Hide checkbox once product has been sold

Posted on 2009-05-12
2
Medium Priority
?
263 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 2000 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

Technology Partners: 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 …
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

618 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