Click to See Complete Forum and Search --> : Excel-like control for displaying data...


YourSurrogateGod
September 11th, 2005, 04:53 PM
What I'd like to do is read info from an online database (this is solved) and display it in a list where you have you can sub-divide the inputs. How would I do that?

I tried ListView, but this proved to be problematic since whenever I tried to add data to the control, it would often appear on the side of previous info and not in a column-like order.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
ListView1.Items.Add("123465", 0)
ListView1.Items.Add("34", 1)
ListView1.Items.Add("12", 2)
End Sub

jmcilhinney
September 11th, 2005, 08:29 PM
The data in a ListView will go where you tell it to go. If it's not going where you want then you must be doing something wrong. The obvious alternative would be to use a DataGrid.

YourSurrogateGod
September 11th, 2005, 09:33 PM
The data in a ListView will go where you tell it to go. If it's not going where you want then you must be doing something wrong.
Huh?
The obvious alternative would be to use a DataGrid.
Actually, I found that to be pretty complex to use.

jmcilhinney
September 11th, 2005, 09:51 PM
You might like to download this library (http://www.quantumsoftware.com.au/ProductsServices/WindowsFormsComponents.aspx) and make use of the ExtendedListView, which supports data-binding.