I am filling a listbox :
For ty = 0 To MaxRows - 1
ListBox1.Items.Add(ds.Tables(0).Rows(ty).Item(1))
Next
However I want to add a second column having Rows(ty) and Item (2)
Can someone tell me how:
a) I modify my code to include the second column
b) Have the first column hidden
c) How to have the first column as selected item (contains record ID)
Don't know if its possible when the listbox row is selected
that the whole row highlights instead of just the cell clicked. Hope I have not confused the issue. Thanks
For ty = 0 To MaxRows - 1
ListBox1.Items.Add(ds.Tables(0).Rows(ty).Item(1))
Next
However I want to add a second column having Rows(ty) and Item (2)
Can someone tell me how:
a) I modify my code to include the second column
b) Have the first column hidden
c) How to have the first column as selected item (contains record ID)
Don't know if its possible when the listbox row is selected
that the whole row highlights instead of just the cell clicked. Hope I have not confused the issue. Thanks