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.
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.
thanks for the quick reply, regarding my 2nd requirement ...let's say i am getting 100 records from the DataBase but want to display only top 50 records (this count comes from a random user setting), this is what i want.
I am not sure how I am able to help you with this one. This will fully depend on your scenario. You have to manage your data source and asign it to the DataSource property of the XamDataGrid.
If you are using SQL source, the you can split the 100 and get only as many records as you need. You could also use filtering to filter only 50 records.
ok...i will try getting from DataSource programatically....thanks for the reply