Q: Main state (again)

G

Guest

1. I have a GridView control data bound via ObjectDataSource1.
2. One of the columns in this GridView is a template column, which in its
<HeaderTemplate> contains DropDownList populated via ObjectDataSource2.
3. Selection from the DropDownList plugs into
ObjectDataSource1.FilterExpression to filer the contents of GridView
accordingly to user's choice,

The problem:
1. When DropDownList's choice is made and ObjectDataSource1.DataSource is
filtered accordingly to it then the DropDownList is reset back to defaut
state (which is no filtering criteria at all). This causes a lot of problems
to say the least.
2. Other colums can be sorted by their values as well. This action also
resets the value of the DropDownList to its default state.

Q: How can I rectify this situation? What do I need to set in order for this
thing to work as intended (once filtered all sorting is conducted on that
subset until user manually specifies that he/she want to go back to
unfiltered version).
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top