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

How to Send Filtered Rows to DataTable

2 Answers 161 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mohsen
Top achievements
Rank 1
Mohsen asked on 05 Mar 2013, 04:30 PM
Hello, 

I'm Using Telerik For WinForms Q1 2013 . i've Filtered GridView with Excel Like Filtering . 

i want send Filtered Rows to a DataTable and After that  send dataTable to StimulReport . 

My Problem is i want send filtered rows exactly not all of rows and records , 

is there possible ? how can i do that ?

2 Answers, 1 is accepted

Sort by
0
Robert LeGood
Top achievements
Rank 1
answered on 06 Mar 2013, 10:40 PM
I'm in the same boat and looking for the same thing.

(Also looking to get a row count of the number of filtered rows, but I'm sure that solving one problem will solve both)

Thanks!
0
Svett
Telerik team
answered on 07 Mar 2013, 04:28 PM
Hello guys.

You can determine the filtered rows by accessing the
ChildRows property of RadGridView, which contains the subset of all rows that obey your data operations (filtering, sorting and grouping). Note that if you want to get the underlying record for each GridViewRowInfo, you should access its DataBoundItem property:
this.radGridView1.ChildRows[0].DataBoundItem

I hope this helps.

Greetings,
Svett
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
GridView
Asked by
Mohsen
Top achievements
Rank 1
Answers by
Robert LeGood
Top achievements
Rank 1
Svett
Telerik team
Share this question
or