Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8048865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:37:05+00:00 2026-06-05T06:37:05+00:00

My problem consist in show values into a cell of a DGV control, for

  • 0

My problem consist in show values into a cell of a DGV control, for example:

MySQL Table:

ID - Name      - Price    - Type
1    Mouse Pad   2.85$    -  a
2    Keyboard    10.50$   -  a
3    Hard Disk   80.00$   -  c
4    Web Cam     15.02$   -  b
5    Printer     45.62$   -  c
6    DVD Writer  20.00$   -  b

My DataGridView Control:

ID - Name       - PriceA    - PriceB    - PriceC

I want display the results Filtering with these conditions [VB.NET sintax]:

If SQLcolumn(Type) = a Then, show the price into PriceA into the DGV.
If SQLcolumn(Type) = b Then, show the price into PriceB into the DGV.
If SQLcolumn(Type) = c Then, show the price into PriceC into the DGV.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:37:08+00:00Added an answer on June 5, 2026 at 6:37 am

    One way is to create a custom List with 5 columns : ID,Name,PriceA,PriceB,PriceC
    and after getting data from database and filling the data into a datatable for example , you can proccess the datatable row by row and check if the Type column of your datatablerow is Type ‘a’ then add the row into the List and add the Price to the PriceA column of the list and after proccessing the whole datatable and adding all it’s rows to the List , you can set the List as Datagridview datasource !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem When working with MasterPages, a common irritation I run into is that script
Problem: to show that a Not-SO-page has been discussed in SO when you at
This is the simplified version of the problem: We have a table on an
Here is my problem I use the mediaplayer integrated in a uiwebview to show
I'm making a form which consist in some text and uploading files. The problem
I have a grouped table view which consists of custom cells. The problem is
Summing up, my problem consists on compiling g95 objects inside a C++ application. Actually,
I have an activity which consists of a ListView . The problem is that
I am Developing an application which consists of video-view,Here is my problem when I
Problem: I am having trouble implementing a recursive image lazy load in all relevant

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.