Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Programatically setting page sizes
posted

Hi,

 

I'm trying to programmatically set the paging behavior for my WHDG in code.  I've used the CreateBehavior to create a paging behavior and then set my Paging behavior to enabled and set its page size, but despite setting these, there is no pager on the grid.

 

If I set the behavior via HTML it works fine, but through code it doesn't appear to work at all.  I'm doing this on the Page_load before the datasource is tied to the grid.  Also if I set the behavior in HTML and leave out the pagesize in the html and attempt to set it in the code behind, it just defaults to 8 per page, regardless of what I set.

 

Anyone run across this before or have a work around?

Parents Reply Children
No Data