Problem in using combo box
hi all,
I want to use combo box in my application and i want to give user only selection option for combo box when they are entry data so i make combo boxs style property to drop down list. But when he edit the data then i access that record from database and want to set combo boxs value to that combo box but when i am assigning value to that combo box then i am getting error saying combo boxs text property is read only. I don't want to give edit facility for combo box in my application.
so can anybody tell me how can i do that.?
Thanks in advance
Regards
Guest11
guest11
Junior Poster in Training
59 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
But i also want to assign value when user access data from database. Actually what i am doing is, when user enter new data that time i gave him selection from combo box but when user edit data that time that combo box's value will have to assign to that combo box. I make style property of combo box to drop down but when i assign value to it that time i am getting error as text box property is read only. I am not able to assign value to that combo box.
suppose i gave division selection in combo box.
But when user access that data from database and when i am trying to assign divisions value to that combo box i am getting error as text box property is read only.
guest11
Junior Poster in Training
59 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2