cell copy with active filter

2 posts, 0 answers
  1. Matthew
    Matthew avatar
    16 posts
    Member since:
    Oct 2010

    Posted 27 Mar 2012 Link to this post

    Hi There,

    I have a grid which has a custom gridbehavior so that if the user hits Shift+Down the current cell is copied to the next row
    if the current row is the last visible row, it creates a new row

    that part works ok.

    the grid will often have an active filter, and if a user hits shift+down and a new row is created, i'm handling RowsChanged so that i can make the new row match the filter.

    despite this happening, the new row still does not show up in the grid, its as if i need to re-apply the filter

    can you recommend the best way to handle this?

    Thanks,
    Matt
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 30 Mar 2012 Link to this post

    Hi Matthew,

    You can use the Refresh method of the MasterTemplate or the Update method of the TableElement to refresh the current row set in RadGridView in your Shift+Down handler:

    this.radGridView1.MasterTemplate.Refresh();

    or
    this.radGridView1.TableElement.Update(GridUINotifyAction.FilteringChanged);

    I hope this helps.

    Greetings,
    Julian Benkov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top