I have a DataGrid in WPF with auto-generated columns.
How can I disable the sort function of all rows following the MVVM pattern?
<DataGrid AutoGenerateColumns="True" ItemsSource="{Binding MyList}" </DataGrid>
Set CanUserSortColumns="False" in the dataGrid, which will disable sorting for all columns.
CanUserSortColumns="False"
<DataGrid AutoGenerateColumns="True" ItemsSource="{Binding MyList}" CanUserSortColumns="False"> </DataGrid>
Source: https://habr.com/ru/post/1201801/More articles:Access Sinatra Headers - ruby ββ| fooobar.comJavaCV configuration in Android Studio - androidSQL Date Range Query - Table Comparison - dateCaching the inside with a partially applied function - closuresTwo offset indexes - sqlFast enumeration through cells UICollectionView - Swift - iosHow to capture data without a browser using Fiddler - web-servicesDrawing Decorator and C # - designJQuery for tooltip on shapes of an image map area - javascriptGitlab Link to JIRA Post - gitlabAll Articles