Monday, February 9, 2015

page size in a DevExpress grid getting lost when one starts inline editing?

In my scenario, this happened because I was doing this...

MyGrid.SettingsPager.PageSize = 5;

 
 

...inside of the Page_Load event! I had to do this to make the page size a default other than ten, but whenever I went into line item editing of a row as a user the page size would just fall back to five regardless of what it had been. The fix was to put the line above inside of:

if (!Page.IsPostBack) {

No comments:

Post a Comment