![]() |
Q: dropdown list, no selected value
I am populating dropdown list with binding dataset, and dropdown list shows
first item by default when application is launched, is there any way I can set it be empty and let user select one? |
RE: Q: dropdown list, no selected value
Call this in Page_Load(or some other handler):
ListItem li = new ListItem("-1", ""); myDDL.Items.InsertAt(0, li); Regards, Kostadin Kostov "JIM.H." wrote: > I am populating dropdown list with binding dataset, and dropdown list shows > first item by default when application is launched, is there any way I can > set it be empty and let user select one? |
Re: dropdown list, no selected value
You have a choice of adding an empty row to either ddl itself or to the
bound dataset. Eliyahu "JIM.H." <JIMH@discussions.microsoft.com> wrote in message news:879FE8E1-A875-4A8E-B138-3FDA0C948D87@microsoft.com... > I am populating dropdown list with binding dataset, and dropdown list shows > first item by default when application is launched, is there any way I can > set it be empty and let user select one? |
| All times are GMT. The time now is 09:33 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.