This is a migrated thread and some comments may be shown as answers.

Event fired when row dragged and dropped within gridview?

1 Answer 59 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 22 Oct 2015, 07:18 PM

Hopefully this is a dumb question with a simple solution.

I have an unbound gridview with AllowRowReorder enabled. When the user drags and drops a row to reorder the contents of the gridview I want to do something. Is there an event for when this occurs?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 23 Oct 2015, 06:55 AM
Hello Mike,

Thank you for contacting us.

The RowsChanged event will fire in this case:
void radGridView1_RowsChanged(object sender, Telerik.WinControls.UI.GridViewCollectionChangedEventArgs e)
{
    if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Move)
    {
        //add your code
    }
}

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Mike
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or