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
315
When/How to use RefreshSortPosition instead of RefreshSort when bound to a datasource
posted

I want to resort my grid when items in the datasource are changed (it's a bindinglist). Calling RefreshSort after I've made modifications works fine, but it seems that using RefreshSortPosition might be a more effective/performant call. However, I'm not sure how to determine the best way to get the affected rows. I don't want to make changes to support using RefreshSortPosition only to have those changes be more expensive than the gains I make by calling it. I thought I could wire to an event on the binding source or grid, but I didn't see an event that seemed appropriate.

Any best practice suggestions on this?