I can also reproduce it when I have two comboboxes on a form, each combobox is bound to a datasourcecontrol (their own), and I have both comboboxes set to autopostback, and the second is filtered by the first (Categories and products). When I select a product (the second combobox), it always selects data and thus reverts to the first one. Very strange. It seems Refetch is true. Odd.
(edit) seems to be the linked selectparameter. If I remove that, it doesn't select again as refetch isn't true. Looking into it.
(edit) ARG!!! Why do these Microsoft devvers put their energy in Atlas while their current stuff is so broken...
. The control's event handler which is bound to selectparameters.ParametersChanged is called, and thus refetch is true.
How come the parameters are changed when they're the same. Now I've to check if this 'changed' is not just 'changed' but simply 'they're set again because of a postback!'...
Perhaps I'm using it wrong, but because there's NO (that's 0.0, zip nada nothing) documentation on any of this... what can I do... I'll see if I can hack around this crap.
(edit) Yep
. The selectparameters are set initially, which causes the event. Perhaps I've to cache them as well... will try that (as this is all trial/error anyway, what a wonderful framework... asp.net)
(edit) Ok, decompiling ObjectDataSourceView seems to reveal that they're using the selectparameters as a key in the equation if they've to select again. Or better: the code called has to figure that out.
I'll cache the parameter values and based on that check if the values have been changed. See if that works around it.