Hi all,
I will present one situation:
1. There is a page with XamGrid with 3 columns and a button
2. The user is clicking on the 2 column header, thus ordering the grid data by that column
3. He clicks the button
Q: Inside the button click event, can I get information about which grid column is ordered (if any) and how (asc/des)?
Thank you
Off the grid is a settings object with a sorted columns collection
this
.grid.SortingSettings.SortedColumns
Each column in that collection has a SortDirection value assigned to it's IsSorted property.
.grid.SortingSettings.SortedColumns [0].IsSorted
Hi Darrel,
I have a similar question, regarding FilteringSettings;
I want to get the actual filter as a string, not as an expression, from RowFilter object
Is that possible?
Ex.
filter row: test - / - / - /
data row: testing1 - 123 - 345 - 678
I am interested in getting the value 'test'...
Thanks
If your filtering scope is set to ColumnLayout then this is easy, the ColumnLayout.FilteringSettings.RowFiltersCollection[x].Conditions object contains all the conditions that are being used to filter the data for a given column (the x is the key of the column)
If you are using FilteringScope.ChildBand then you could use a similar mechanism but its a little more difficult to get to the collection.
If you are using flat data, use ColumnLayout as your scope.