Dropdownlist Shows defaultvalue when bound to sqldatasource.
-
I want to remove defaultvalue that dropdownlist captures when I bound the control to sqldatasource. So that user selects from list. Secondly, How to dropdown the list when it got focus. Regards Asif Rehman
-
I want to remove defaultvalue that dropdownlist captures when I bound the control to sqldatasource. So that user selects from list. Secondly, How to dropdown the list when it got focus. Regards Asif Rehman
Asif Rehman wrote:
I want to remove defaultvalue that dropdownlist captures when I bound the control to sqldatasource. So that user selects from list.
Try this, myDropDownList.Items.RemoveAt(0)
Asif Rehman wrote:
Secondly, How to dropdown the list when it got focus.
Didn't get your question :confused:
Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer
-
Asif Rehman wrote:
I want to remove defaultvalue that dropdownlist captures when I bound the control to sqldatasource. So that user selects from list.
Try this, myDropDownList.Items.RemoveAt(0)
Asif Rehman wrote:
Secondly, How to dropdown the list when it got focus.
Didn't get your question :confused:
Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer
Abhijit Jana wrote:
Didn't get your question
Actually I'm basically a windows developer in which on gotfocus event I can dropdown list which makes user easy to select and type. Is there any way when I dropdownlist gets focus it automatically opens(drop down). Hope you understand what I'm trying to say. Regards Asif Rehman
-
Abhijit Jana wrote:
Didn't get your question
Actually I'm basically a windows developer in which on gotfocus event I can dropdown list which makes user easy to select and type. Is there any way when I dropdownlist gets focus it automatically opens(drop down). Hope you understand what I'm trying to say. Regards Asif Rehman
Yes, There is an similar question in Q&A section, Have a look http://www.codeproject.com/Answers/89611/ASP-NET-how-to-create-a-dropdownlist-that-onfocus-.aspx#answer2[^] Even you can see this also http://forums.asp.net/t/1118333.aspx[^] Hope this will help you !!
Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer