is there a character casing propery for combo boxes?
Printable View
is there a character casing propery for combo boxes?
can you explain more, i dont quite understand the question ??? :confused:
You could look at
1. Font property which gets or sets the font displayed in the control.
2. FormatString property gets or sets the format specifier characters that indicate how a value is to be displayed. Look also at the FormattingEnabled property which gets or sets a value indicating whether formatting is applied to the DisplayMember property of the ListControl.
3. You could also look at formatting the DisplayMembers before loading the ComboBox.
HTH.
I want all the letters in a combo box to be upper case.
There is no CharacterCasing property as there is for a TextBox. What have you set the DropDownStyle property to and is the control data-bound?
The dropdownstyle property is set to "DropDownList" and I'm populating the combo box from a dataset.
Well then whatever data is in the DataSet is what's going to be displayed. If you really want the items all upper case then you'll have to make a copy of the values in another array or collection, capitalise them and bind that to the control. You may also be able to add an extra column to your DataTable and put an upper case copy of the column you're interested into it.
Or do the obvious, and make the data you pull from the database uppercase by using the appropiate SQL command. :p
here is how you do it in sql server, this is the query exampleQuote:
Or do the obvious, and make the data you pull from the database uppercase by using the appropiate SQL command.
"select upper(name) as namex from clients"
c u