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

Apply Filter to underlying datasource

1 Answer 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 29 Dec 2012, 12:46 AM
I'm binding GridView to a datasource referencing a dataset with filtering enabled. I understand the filtered rows are in the ChildRows collection - but how do apply that to the underlying datasource so I can remove the filtered records?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Jan 2013, 08:28 AM
Hello John,

Thank you for writing.

The filtering functionality of RadGridView does not work with the underlying data source. It filters the available rows in the grid UI and the resulted rows can be found in the ChildRows collection as you mentioned. 

A possible approach might be to iterate the rows in the data set, or in the Rows collection of the grid and delete every row that does not exist in the ChildRows collection.

I hope this helps.
 
Greetings,
Stefan
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or