M
merco
Hi, i'm populating a combobox small datas from a Dataset.
Dim Ds As DataSet
Ds = GetDS("Select * from Utenti")
Cb.Items.Clear()
Cb.DataSource = Ds.Tables(0)
Cb.DisplayMember = "Descrizione"
Cb.ValueMember = "Codice"
It's a simple "Users" table with ID (codice) and description
(descrizione).
Is there a way to pre-select an item by it's code without cycling for
all items in combobox ?
I've tried , with no success, indexof ,passing only a string type
parameter (the code)...
thanks
Dim Ds As DataSet
Ds = GetDS("Select * from Utenti")
Cb.Items.Clear()
Cb.DataSource = Ds.Tables(0)
Cb.DisplayMember = "Descrizione"
Cb.ValueMember = "Codice"
It's a simple "Users" table with ID (codice) and description
(descrizione).
Is there a way to pre-select an item by it's code without cycling for
all items in combobox ?
I've tried , with no success, indexof ,passing only a string type
parameter (the code)...
thanks