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
165
UltraGridGroupByRow jumping
posted

 Hi,

We have an ultragrid using UltraGridGroupByRow to group by specific columns. New rows are coming frequently. If those new groups are inserted into correct sorting positions which may be above user editing rows, the editing rows will be pushed down. This keeps annoying users especially when hundreds of new rows are inserted.

Then we changed the code to force new rows added at the buttom, which largely solves the problem although it breaks the sorting. However we still notice that the grid sometimes scrolls up to somewhere else when new rows come in.

We are unable to reproduce it in develop environment. In product environment where large volume of new rows are inserted, we have seen the problem several times daily.

We have tried setting syncwithcurrencymanager to false but didn't help. Please let me know if  any attributes we can set to solve the problem.

Thanks

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    Are the new rows added all at once? Perhaps what you can do is store the grid.ActiveRowScrollRegion.FirstRow in a variable. Then you could add all the new rows at once, and even sort them, then restore the FirstRow back to what it was and thus the grid would be scrolled back to the same spot it was at before the rows were added. You could surround all of this code with a BeginUpdate / EndUpdate block to prevent the grid from painting during this process.

     

Children
No Data