SolutionCottage.com
Posted  11 Mar 2009 - 11:56:54

Category: ASP.net


Add an item to a dropdown control at first place.

Issue:
You want to create an item on the first place in a DropDown control.

Solution:
You do this after the DataBind (if you use that), otherwise it will be overwritten by the databound items.

myDropDown.Items.Insert(0, "");








0 comments:








© SolutionCottage 2008-2011 9/26/2017 10:02:18 AM