Skip to content

Commit

Permalink
chore: add post sort to sample
Browse files Browse the repository at this point in the history
  • Loading branch information
giard-alexandre committed Oct 17, 2024
1 parent 82a14a8 commit dc97e7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/SampleApp/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public MainWindowViewModel() {

DataSource = new DynamicFlatTreeDataGridSource<Person, int>(filteredData, RxApp.MainThreadScheduler, new DynamicTreeDataGridSourceOptions<Person>() {
PreColumnSort = SortExpressionComparer<Person>.Descending(person => person.IsChecked),
PostColumnSort = SortExpressionComparer<Person>.Descending(person => person.Money),
}) {
Columns = {
new DynamicTextColumn<Person, int>("Id", "Id", person => person.Id),
Expand Down

0 comments on commit dc97e7f

Please sign in to comment.