H
Hardik Shah
Hi,
Generaly to populate combobox , I use following command :-
Combobox1.datasource = dataset.tablename
combobox1.displaymember = fieldname1
combobox1.valuemember = fieldname2
As I don't want to generate dataset, and instead of it, want to use
datareader , can I give following command
Combobox1.datasource = DataReader
combobox1.displaymember = DataReader.FieldName1
combobox1.ValueMember = DataReader.FieldName2
I also don't want to do like following :-
Do While myReader.Read()
Combobox1.additem (myreader.item(...))
Loop
Is above is possible or is there any other way to populate combobox data ?
Any hints will be sincerely appreciated.
Hardik Shah
Generaly to populate combobox , I use following command :-
Combobox1.datasource = dataset.tablename
combobox1.displaymember = fieldname1
combobox1.valuemember = fieldname2
As I don't want to generate dataset, and instead of it, want to use
datareader , can I give following command
Combobox1.datasource = DataReader
combobox1.displaymember = DataReader.FieldName1
combobox1.ValueMember = DataReader.FieldName2
I also don't want to do like following :-
Do While myReader.Read()
Combobox1.additem (myreader.item(...))
Loop
Is above is possible or is there any other way to populate combobox data ?
Any hints will be sincerely appreciated.
Hardik Shah