I have a problem with my DataGrid, again... This time: How can I turn off the sorting when I am editing a cell?
For example:

I add the marked 'A' last and it jumped to the top because the column is sorted. But it should stay at the button. If you sort a settings file (in Visual Studio) it works exactly like I want to. You can try it yourself, here is the same example in VS:

I tried to reset the SortDirection, doesn't work:
private void dgVATINS_BeginningEdit(object sender, DataGridBeginningEditEventArgs e)
{
foreach (DataGridColumn col in dgVATINS.Columns)
{
col.SortDirection = null;
}
}
Found a solution:
And add an event handler to the
CollectionChangedevent from theObservableCollection<T>