New to Telerik UI for WinForms? Download free 30-day trial

Getting Started

This article shows how you can start using RadFilterView and using it for filtering a RadGridView control.

  1. Drag a RadFilterView from the toolbox and drop it onto the form.

  2. Drag a RadGridView from the toolbox and drop it onto the form.

  3. Set the DataSource property of RadGridView, e.g. use the Northwind.Products table, to populate it with data.

    filter-view-getting-started 002

  4. Enable the filtering functionality in RadGridView, set the EnableFiltering property to true.

    filter-view-getting-started 003

  5. Set the AssociatedControl of RadFilterView to be the grid.

    filter-view-getting-started 004

That's it. You can now filter the grid by using the automatically generated categories in RadFilterView.

filter-view-getting-started 001

Steps 3-5 can also be performed programmatically:

this.radGridView1.DataSource = this.productsBindingSource;
this.radGridView1.EnableFiltering = true;
this.radFilterView1.AssociatedControl = this.radGridView1;

Me.RadGridView1.DataSource = Me.ProductsBindingSource
Me.RadGridView1.EnableFiltering = True
Me.RadFilterView1.AssociatedControl = Me.RadGridView1

See Also

In this article