I have a datapager and a combobox with values (10,25,50,100, All (=int.maxvalue))
When the user selects a value I set the pagesize of the datapager in codebehind.
The problem is that the layout of the datapager does not update immediately after I set the pageSize.
For example : I have 17 items and I start with 'All' as pagesize, then I only see one pagebutton which is correct. If I change the pagesize to 10, the second pagebutton does not appear until I hit the NextButton, and if I change again to 'All', the second pagebutton never disappears and shows an empty grid if it is selected....
Is there a way to update the layout correctly without setting the datasource again?