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

cell copy with active filter

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 28 Mar 2012, 02:55 AM
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

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 30 Mar 2012, 08:33 AM
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 >>
Tags
GridView
Asked by
Matthew
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or