I am using a ListView WPF with N number of columns, where the 1st column should behave like a column of fields and it should remain 1st all the time
How can I disable re-ordering only for the 1st column and save other columns with reorderability?
I can disable the drag of the 1st column using the IsHitTestVisible property, which will disable the mouse inputs, but I noticed that the user can drag the second column (for example) and place it right in front of the first column, and this will change the 1st column with the second column ?
I figured out how to do this:
1) first subscribe to the event:
GridView gridView = this.dbListView.View as GridView; gridView.Columns.CollectionChanged += new NotifyCollectionChangedEventHandler(Columns_CollectionChanged);
2) Event handler:
source share