471,305 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

Listbox Multicolumn Vs Datagrid

Hi I have a form with a listbox, two comboboxes and two Radiobuttons.
What I want to do is make a selection from both comboboxes and either
Radiobutton and display these three elements across the top of the
listbox eg. 5, 10, 'Go'

As I need multiple rows of data I have a button to 'Load' this to the
listbox. I'm stuck though as I'm having difficulty loading this
correctly. Question: Woulkd I be better off with a datagrid for this
job, and if so, would I need to use dataview. If it is easy using the
listbox, I'm in need of some guidance

Private Sub RadioButton1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles RadioButton1.Click

Dim first, Second As String

If RadioButton1.Checked = True Then

first = "Go"

ElseIf RadioButton2.Checked = True Then

Second = "Stop"

End If

End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load

ComboBox1.Items.Add(5)

ComboBox1.Items.Add(10)

ComboBox1.Items.Add(15)

ComboBox1.Items.Add(20)

ComboBox1.Items.Add(25)

ComboBox1.Items.Add(30)

ComboBox2.Items.Add(1)

ComboBox2.Items.Add(2)

ComboBox2.Items.Add(3)

ComboBox2.Items.Add(4)

ComboBox2.Items.Add(5)

ComboBox2.Items.Add(6)

End Sub

Nov 21 '05 #1
1 4935
Hi Zone,

Please splits your problems up in for a newsgroup answerable small parts.

The answer is simple, there is basically not a Multicolumn listbox in the
way as I think you describe it.
A multicolumn listbox is an horizontal listbox where a non multicolumn
listbox is a vertical listbox.

When you want to edit data, than in my opinion probably the datagrid will be
your best choose.
When you only want to show data than in my opinion probably the dataview is
your best choose.

I hope this helps

Cor
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Paul Bromley | last post: by
5 posts views Thread by matthewtec | last post: by
1 post views Thread by mkhmer | last post: by
2 posts views Thread by dev.amit | last post: by
6 posts views Thread by =?Utf-8?B?SnVzdGlu?= | last post: by
2 posts views Thread by =?Utf-8?B?Sm9uYXRoYW4=?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.