hi..,
how to convert dropdown list items to title case..?
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 3, 2014, 6:53 AM
There's no DropDownList control in Windows Forms but the closest equivalent is the ComboBox.
If the ComboBox isn't data-bound, the following code should work:
object[] items = (from object o in comboBox1.Items select (object)ti.ToTitleCase(o.ToString())).ToArray();
If it is data-bound, then it's best to change the underlying data source.
Lakshmanan Sethu SankaranarayanPosted Mar 3, 2014, 6:31 AM
VulpesPosted Mar 3, 2014, 5:45 AM
Lakshmanan Sethu SankaranarayanPosted Mar 3, 2014, 5:12 AM