Is there any way to catch a row reorder event?
My grid is in unbound mode, with AllowRowReorder = true. I need to be able to tell when a user reorders the rows via drag and drop, but the obvious DragDrop event is not hit. Do I really need to use MouseDown, MouseUp, and lots of calculations of row size and position?
-----------------------------------------------------------
Since posting this I found my answer in your demo:
...
My grid is in unbound mode, with AllowRowReorder = true. I need to be able to tell when a user reorders the rows via drag and drop, but the obvious DragDrop event is not hit. Do I really need to use MouseDown, MouseUp, and lots of calculations of row size and position?
-----------------------------------------------------------
Since posting this I found my answer in your demo:
...
this.radGridView1.Rows.CollectionChanged += new NotifyCollectionChangedEventHandler(Rows_CollectionChanged);...
private void Rows_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
if (e.Action == NotifyCollectionChangedAction.Move)
{
for (int i = 0; i < this.radGridView1.Rows.Count; i++)
{
this.radGridView1.Rows[i].Cells["Priority"].Value = i + 1;
}
}
}