Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27192

VS 2010 [RESOLVED] Display text in listbox, but via query method?

$
0
0
I'm well aware of the traditional method to display text in a listbox:
Code:

lstOutput.Items.Add("Some text.")
However, I need that same type of function to occur via a query:
Code:

lstOutput.DataSource = Nothing
Dim query = From myTax In TAXDataSet.Inventory
      Where (myTax.quantity <= 10)
      Select myTax.item, myTax.quantity, myTax.description

**** OUTPUT CUSTOM TEXT HERE, FIRST, THEN *****

lstOutput.DataSource = query.ToList
lstOutput.SelectedItem = Nothing

Anyone care to show an example of what I'd need to do this?

Viewing all articles
Browse latest Browse all 27192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>