making a combobox readonly

abhi.944

New member
Joined
Jul 18, 2006
Messages
3
Programming Experience
Beginner
I m developing this application where i grab data from a dataset by a bindingsource to the appropriate table in the dataset and then assigning
data source property of a combobox to the binding source.

My table which i want to bind to combo box is Folder table contaning two columns Folder_ID (Integer PK) and Folder_Name (Varchar), and i wnt to display all the folder Names in the Data Base in the ComboBox, and i wnt to make sure User Can't change the value of option she selects in the ComboBox so i wnt to make it a ReadOnly and i m Unable to do it inspite of Trying hard.
Please if u knw the answer Suggest me cause i m out of options here..
 
"If you set the DropDownStyle property to DropDownList, you can select only valid values from the list. If you set the DropDownStyle property to DropDown, you can type any value in the editable area of the ComboBox."

So you want the style to be DropDownList.
 
Back
Top