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
3166
Passing the sort, search control to the datasource
posted

The datasource we are using has around 50K records. We want to implement virtual paging so at time only 50 records are bound to the grid.

We would need to control search and sort functionality of the grid to make sure the virtual page contains the 50 records according to the set criteria. Is there a way to override the default search and sort functionality of the grid and pass the control to the datasource. The datasource implements IBindingList, I thought the grid would use the ApplySort. Find and other function of IBindingList by default.

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    There's no search functionality in the grid. So the only issue here is sorting. What you could do is set the HeaderClickAction to one of the "External" modes. This would show the SortIndicators in the column headers just as though the grid was sorting the data, but no actual sorting would be done by the grid. You would then handle the grid events like Before/AfterSortChange and handle the sorting yourself on the data source and then refresh the grid's display.

Reply Children