What would be the best way to add "Please Choose" to a data bound DropDown?

M

Max2006

Hi,

I have a DropDown bound to a DataTable and I would like to add "Please
Choose" as the 1st default item. I know that I can add "Please Choose" to
the DataTable; but I wonder if I do the same without manipulating the
DataTable.

Thanks,
Max
 
D

David Wier

if you're using ASP.Net 2.0, just change the 'AppendDataBoundItems' property
to 'True', then, in the Items property (or in the tag), add the list item
you need.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top