Click here to Skip to main content
15,914,322 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Dear Friends kindly give me a solution of my problem

In SQL table the value is ... January
.
and the combo box value is .. January .. febaray ... march ..

during comparing the value will be the combo box selectedItem= January
Posted
Comments
TanvirRaihan 26-Sep-12 8:41am    
Please describe your problem properly...
ali_heidari_ 26-Sep-12 9:08am    
so whats your problem? wana its code?

dropdown.selectedItem.value= "January"

or

dropdown.selectedItem.text= "January"
 
Share this answer
 
Comments
saleem.mukhtiar 27-Sep-12 7:44am    
txtAccmoVid.Text = colc.Item(0).Cells(1).Value
txtAccmoVid.ReadOnly = True
cboAccomoCity.SelectedValue = colc.Item(0).Cells(2)



here is your given code ... but combo box SelectedIndex is remain -1
kindly friends help me ..
when i reffer comobobox.text = "January"
.
then .. another string added in the list ...
.
and i reffer selected index then .. got problem in reporting and other forms
.
so please tell me how can we check that
.
..
 
Share this answer
 
Comments
saleem.mukhtiar 27-Sep-12 6:44am    
txtAccmoVid.Text = colc.Item(0).Cells(1).Value
txtAccmoVid.ReadOnly = True
cboAccomoCity.SelectedValue = colc.Item(0).Cells(2)



here is your given code ... but combo box SelectedIndex is remain -1
kindly friends help me ..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900