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
605
Default Sorting on DateTime Field
posted

Hi,

               I am using XamDataGrid, and want to sort a DataTime field in Descending Order defaultly(OnLoading) and display the number of records based on a setting(Numer of records to be displayed).how can i do this.thanks in advance.

 

Parents
No Data
Reply
  • 69686
    Suggested Answer
    posted

    Hello,

    In order to do this, you have to add a FieldSortDescription when the XamDataGrid loads to the SortedFields collection of the FieldLayout. You can set the Field that you would like to sort, the direction and whether this records should be grouped or not. Regarding your second requirement, I was not able to understand what you are trying to achieve. Do you have in mind something like Row Summaries feature.

     

Children