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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
|