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

  • SEARCH
  • Home
  • 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 8354297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:30:25+00:00 2026-06-09T09:30:25+00:00

I have this application with a list box. When a button is clicked, certain

  • 0

I have this application with a list box. When a button is clicked, certain things from my db is supposed to display. Along with the display comes column headers!!! It comes in the form of “{itemID = SW934, quantity = 10…” and so on. How do I get rid of the “{” and the column header??? Here is my current code:

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    'TODO: This line of code loads data into the 'MICROLANDDataSet.Orders' table. You can move, or remove it, as needed.
    Me.OrdersTableAdapter.Fill(Me.MICROLANDDataSet.Orders)
    'TODO: This line of code loads data into the 'MICROLANDDataSet.Inventory' table. You can move, or remove it, as needed.
    Me.InventoryTableAdapter.Fill(Me.MICROLANDDataSet.Inventory)
    'TODO: This line of code loads data into the 'MICROLANDDataSet.Customers' table. You can move, or remove it, as needed.
    Me.CustomersTableAdapter.Fill(Me.MICROLANDDataSet.Customers)

End Sub

Private Sub btnOut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOut.Click
    Dim query1 = From OUT In MICROLANDDataSet.Inventory
                 Where OUT.quantity <= 10
                 Order By OUT.description Descending
                 Select OUT.itemID, OUT.quantity, OUT.description

    lstOutput.DataSource = query1.ToList
    lstOutput.SelectedItem = Nothing


End Sub

End Class

Thanks guys. Any help is VERY WELCOME.

  • 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-09T09:30:27+00:00Added an answer on June 9, 2026 at 9:30 am

    The problem is that query1 is an In-Memoery Queue Of Anonymous. In other words, it is a enumeration of objects of an undefined type. One way to get around this, is to concatenate your results into one string.

     Select OUT.itemID & OUT.quantity & OUT.description
    

    and make query1 a List(Of String) (You can format the string any way you wish.)

    Another option is to designate one of the fields as a display field.

    lstOutput.DisplayMember="Description"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this application that need to do some things in protected paths (like
I have a windows form1 application. This form1 has a click button. When the
I have this application where I implement the ActionBar Fragment interface. Underlying the interface,
I have this application written in JSF 2.0 facelets and it has the following
i have this application but how to use its? and example for 7-zip can?
I have this application written in java to calculate pageranks. And the application takes
I have this application I made on a utility based app. How would I
I have this application that will recurse all folders in a given directory and
I have this application with 2 classes, in the first class I define a
I have this application that I want to support multi languages. I thought the

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.