Is it possible to control the fetch command of the ASPdatasource. I have the following scenario.
Aspdatasource.
Devexpress grid(with a dropdownlist).
detailview(with controls and dropdownlist)
The problem is that when you change a value of the dropdown it fires a postback, this postback triggers the fetch command of the aspdatasource, and you can imagine what will happen, the value of the dropdown will "reset" it self the value that the datasource has brought, so my work around is, that when i change the value of the dropdown i'll store it into the session and after the postback i will change the dropdownlist value again to what the user has selected. This i do by searching the controlcollection for the control and when found I'll set the value that i stored in session) and then i can do an update(the Detailview update command).
It is the same when you use a button. because the button fires a postback no matter what. So i have to use the session as an alternative to store what the user changes and after the postback go through the page control and set the value for the controls, it is pretty anoying. And it will get difficult when i need to do it for the dropdownlist that is in a gridview row.
If i could control the aspDatasource to not fetch everytime, It would be a good solution, it would be great if the datasource could have a aspdatasource.Select() method like .net datasets to trigger it when you want it.
it is a AJAX webapplication,
I wonder that anybody ran into this scenario and what was their solution