Hello,
Is there a way to do an insert row, let me explain. I want to add a new row but not at the end or at the beginning, but between 2 existing row.Also from the same problem, if by mistake I added it at then end, is there a way to drag a row inside the grid (change order) to place it between 2 existing row.
Thank you in advance for taking the time to help me.
Martin.
Martin,
When you are adding a new object, you can use the Insert method of your underlying source collection (for example ObservableCollection). You can also use Move method.
ObservableCollection<string> source = new ObservableCollection<string>();
source.Move(index1, index2);
The move works very well thank you.
But is it possible to get a insert row inside the xamDataGrid? (An add row between 2 existing row)
Is it possible to drag a row in the xamDataGrid so if it's the 3rd row I can drag it up and it falls between the first and the second row?