Event fired when row dragged and dropped within gridview?

2 posts, 0 answers
  1. Mike
    Mike avatar
    1 posts
    Member since:
    Oct 2015

    Posted 22 Oct 2015 Link to this post

    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?

  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 23 Oct 2015 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top