0

I have figured out how to populate the comboboxes for an app I'm making from a database

this is not the actual code but is basically the way I'm populating them

for i = 0 to maxrows - 1
cbobox.items.add(dataset.tables("datatablename").Rows(i).Item(x))

next i

I need either to be able to manually assign an index value to each added item or at least figure out how vb.net manually assigns index values to these.

-Thanks

1
Contributor
1
Reply
3
Views
7 Years
Discussion Span
Last Post by tphuoc
0

Well, I figured out that by default the index values count up from 0.... but I would still prefer to be able to assign the values manually.

Edited by tphuoc: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.