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

Create Filtered Dataset from Filtered RadGridView

1 Answer 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stewart
Top achievements
Rank 1
Stewart asked on 08 Oct 2014, 09:04 PM
Is there any way to take a filtered RadGridView and create a corresponding dataset that can be passed to a Telerik report?  How do I even get to the filter expression for the GridView?  I have found examples of how to get the filter expression on a RadGrid but not a RadGridView.  Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stewart
Top achievements
Rank 1
answered on 08 Oct 2014, 09:38 PM
I figured this out.

In the FilterExpressionChanged event for the GridView set the bindingsource filter to be the same as the gridview filter as shown here:
private void gvAssets_FilterExpressionChanged(object sender, FilterExpressionChangedEventArgs e)
{
vPHIScoresBindingSource.Filter = e.FilterExpression;
}

Then, when you call the report simply pass in the BindingSource as the dataset.
Tags
GridView
Asked by
Stewart
Top achievements
Rank 1
Answers by
Stewart
Top achievements
Rank 1
Share this question
or