By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,508 Members | 1,823 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,508 IT Pros & Developers. It's quick & easy.

DataBound Drop Down List

P: n/a
Hi all,

I hope someone can help with this relatively simple problem.
I am building a timesheet application using ASP.NET C# with Visual
Studio 2003.As it is only a protoype application, my database has been
made in MSDE.

My question is simple, on my Projects form I have a 'search' button,
which when clicked re-binds a datagrid with a RowFilter based on a
number of user-input parameters. Two of these parameters are drop-down
lists. The first is simply populated with a defined list of items. The
second is DataBound to show a list of managers from the managers table.
With the first drop down list I have set the 'selected item' by default
to be a blank record. This means that if the user chooses nothing, the
search will effectively ignore the drop-down. This is great. However,
with the DataBound drop-down list, I cannot do this. This means that
the user HAS to search by one of the managers. Subsequently, the user
cannot search on other criteria to return projects by ALL managers, as
one of them must be selected!..

Does anyone have any suggestions as to how I can get round this
problem, aside from creating a blank manager entry in the table, which
is obviously not ideal!

Many thanks!


Apr 23 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.