G
Guest
Hi, I was wondering if anyone can help me with a problem. I am using a datareader to fill my combobox (Combobox3) based on a stored proc
This code is in the SelecetedIndexChanged event of combobox2. i.e when combobox2 is clicked the code below is run to fill combobox3.
What i need help doin is gettin the values that are retireved to also fill an arraylist that i have
I.e the values that the dataredaer retrieves i want to be placed into an array as well as the combobox. I have filled the combobox but do not know how to fill the array. Can anyone help me? I have tried my version of it below but this only shows one item in the array.
Tr
Cn.Open(
Dim reader3 As SqlDataReade
reader3 = cmd.ExecuteReader(
While reader3.Rea
Combobox3.Items.Add(reader3.GetSqlString(0)
'place an array here of all the caravan invs availbl
AvailCaraInv.Add(reader3.GetSqlString(0)
DataGrid1.DataSource = AvailCaraIn
End Whil
Catch ex As Exceptio
MsgBox(ex.Message
Finall
Cn.Close(
End Tr
This code is in the SelecetedIndexChanged event of combobox2. i.e when combobox2 is clicked the code below is run to fill combobox3.
What i need help doin is gettin the values that are retireved to also fill an arraylist that i have
I.e the values that the dataredaer retrieves i want to be placed into an array as well as the combobox. I have filled the combobox but do not know how to fill the array. Can anyone help me? I have tried my version of it below but this only shows one item in the array.
Tr
Cn.Open(
Dim reader3 As SqlDataReade
reader3 = cmd.ExecuteReader(
While reader3.Rea
Combobox3.Items.Add(reader3.GetSqlString(0)
'place an array here of all the caravan invs availbl
AvailCaraInv.Add(reader3.GetSqlString(0)
DataGrid1.DataSource = AvailCaraIn
End Whil
Catch ex As Exceptio
MsgBox(ex.Message
Finall
Cn.Close(
End Tr