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 214373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:22:06+00:00 2026-05-11T18:22:06+00:00

I have a three-tier Windows Forms DB application in VB.NET. I’m using VS 2005.

  • 0

I have a three-tier Windows Forms DB application in VB.NET. I’m using VS 2005.

I’d like to display records in a table in a DataGridView. I can already display the records as is by binding the DataSource to the business class that talks to the DB class:

Dim assetList as List(Of Asset)
assetList = DB_Asset.GetAssetListOrderByID_Asset 
AssetDataGridView.DataSource = assetList

“Asset” is my business class, and “DB_Asset” is my DB class that queries the DB to return assetList.

Now, Asset has members something like this:

Private m_ID_Asset As Integer
Private m_CategoryID As Integer
Private m_CustodianID As Integer
Private m_ManufacturerID As Integer
Private m_SignedOutToID As Integer
Private m_DefaultLocationID As Integer
Private m_CurrentLocationID As Integer
Private m_DateAcquired As Date
Private m_DateEntered As Date
Private m_EnteredByID As Integer

m _ ID _ Asset contains the primary key for the Asset table in the DB, and everything else of the form m_XXXXXXXXXID contains a foreign key to another table in the DB.

So basically what I get now is rows with a whole lot of numbers. It’s exactly what’s in the Assets table:

ID_Asset  CategoryID  CustodianID  ManufacturerID  SignedOutToID
   1           17          23            14              5

What I’d like to know is if there’s an easy way to display the text fields that I’ve linked to with all of those foreign keys:

ID_Asset  CategoryName  CustodianName  Manufacturer  SignedOutTo
   1       Soda - Diet      John       Coca-Cola        Fred

Anyone with experience here have any tricks?

Thanks in advance!

  • 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-05-11T18:22:06+00:00Added an answer on May 11, 2026 at 6:22 pm

    If you have a List(Of Asset) then you basically just change your query DB_Asset.GetAssetListOrderByID_Asset so you are doing your required joins in there and assigning the values out of that property to assetList.

    You would want to add something like m_CustomerName As String to your Asset class, along with whatever else you’ll be retrieving so you have a place to put the data.

    If you can’t change your Asset class you probably want to wrap something around it that gets all those strings for you before you bind.

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

Sidebar

Ask A Question

Stats

  • Questions 217k
  • Answers 217k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Check for magic_quotes_gpc being enabled, either by looking at php.ini… May 12, 2026 at 11:19 pm
  • Editorial Team
    Editorial Team added an answer Try these http://consultingblogs.emc.com/merrickchaffer/archive/2008/06/13/code-coverage-in-visual-studio-2008-using-test-driven-net-and-team-coverage.aspx and... Code Coverage Basics with Visual Studio… May 12, 2026 at 11:19 pm
  • Editorial Team
    Editorial Team added an answer here's an alternative in vbscript, that iterates the directory just… May 12, 2026 at 11:19 pm

Related Questions

I have a three-tier Windows Forms DB application in VB.NET. I'm using VS 2005.
I've been designing quite a few Windows Forms applications lately (data-entry apps, office integration,
I have created an n-tier solution where I am retrieving related data from a
I have to build a web application in a couple of weeks in your
I am developing a distributed application where each distributed site will run a 2-tier

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.