locked
Custom Paging Logic with PagedCollectionView, DataGrid and DataPager RRS feed

  • Question

  • 2 related questions:

    1) Is there any way to use custom paging logic with the DataGrid and DataPager controls?

    For example, if I am displaying records that contain dates, would it be possible to page based on the year of the date?

    2) If this is not possible, is it at least possible when using grouping in the datagrid, to prevent groups from breaking across pages?

    Tuesday, March 27, 2012 4:12 PM

Answers

  • Hi,

    1) Is there any way to use custom paging logic with the DataGrid and DataPager controls?

    No. There is not a good method to realize it.

    2) If this is not possible, is it at least possible when using grouping in the datagrid, to prevent groups from breaking across pages?

    In my opinion, you can't prevent the groups from breaking across pages. However, you can try to use PagedCollectionView.Filter property to get the the item which is suited for inclusion in the view. For more information, please check below:

    http://www.codeproject.com/Articles/83906/Silverlight-4-Datagrid-Sorting-Grouping-Filtering

     

    Thursday, March 29, 2012 7:07 AM