Browse Source

Update samples/ControlCatalog/Pages/DataGridPage.xaml.cs

Co-authored-by: Dariusz Komosiński <darek.komosinski@gmail.com>
pull/4687/head
Max Katz 6 years ago
committed by GitHub
parent
commit
6ca33a86c5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      samples/ControlCatalog/Pages/DataGridPage.xaml.cs

2
samples/ControlCatalog/Pages/DataGridPage.xaml.cs

@ -17,7 +17,7 @@ namespace ControlCatalog.Pages
this.InitializeComponent();
var dataGridSortDescription = DataGridSortDescription.FromPath(nameof(Country.Region), ListSortDirection.Ascending, new ReversedStringComparer());
var colelctionView1 = new DataGridCollectionView(Countries.All);
var collectionView1 = new DataGridCollectionView(Countries.All);
colelctionView1.SortDescriptions.Add(dataGridSortDescription);
var dg1 = this.FindControl<DataGrid>("dataGrid1");
dg1.IsReadOnly = true;

Loading…
Cancel
Save