Last post Aug 20, 2012 05:00 AM by J__J__y
Aug 19, 2012 06:37 PM|sreekanth_jayan|LINK
What I want is a blank combobox (dont want to clear items, just need to change selected index to 0) when it gets focus, by clearing previously selected value.
Please help me with this
This solved the problem:
protected void Page_Load(object sender, EventArgs e)
TextBox textBox = cmbExample.FindControl("TextBox") as TextBox;
if (textBox != null)
Aug 20, 2012 04:40 AM|chetan.sarode|LINK
Aug 20, 2012 05:00 AM|J__J__y|LINK
I suggest you can add an option with blank text and you can change the selected item to the blank text item when you want to clear the selected text.