Blogs

News

Email Subscriptions

Mehul Harry's DevExpress Blog

ASP.NET GridView: How-To Add Multiple Check-Box Column Filter

     

Watch the "Mastering ASP.NET GridView: Filtering and Multiple Checkboxes" webinar and learn how-to add this easily the ASPxGridView.

Check out this slick Code Central sample that shows you how to add a multiple selection header filter to the DevExpress ASP.NET GridView:

ASPxGridView Multiple Selection Header Filter

Code Central Sample:

Implementing pivot grid like filtration style

How to use Code Central

How-To:

To get a header filter like our ASPxPivotGrid, here's a short explanation:

  1. Add an <img> tag to the column's CaptionTemplate Container
  2. Then handle its' click event and show the PopupControl containing all required items. It is possible to populate the ASPxPopupControl with items using the ASPxCallback control.
  3. You should send a callback to the server, add all the required items and finally return the rendering result to the client.
  4. When the end-user selects several items and clicks the OK button, send the GridView's callback to the server and filter it as needed.

You can try this sample online now. Then download the code central sample to your local machine and have fun with the project yourself.

 

Try this useful filter sample for the ASPxGridView. Then drop me a line below with your thoughts. Thanks.

 

Accept No Limitations - Voted Best Grid by readers of DevProConnections Magazine for 4 straight years

The ASPxGridView Suite is a feature-complete grid and editors library for ASP.NET. With blazing fast data loading, extensive data shaping options, and lightweight memory footprint, the ASPxGridView allows you to deliver a highly compelling and effective end-user experience with ease.

Go with the winner - the most decorated ASP.NET Grid Control in the market.

Check out all the great features now: ASP.NET Data Grid and Data Editors

Follow MehulHarry on Twitter

Published Jul 01 2011, 04:40 PM by Mehul Harry (DevExpress)
Bookmark and Share

Comments

No Comments

About Mehul Harry (DevExpress)

Mehul Harry is an ASP.NET technical evangelist at Developer Express. You can reach him directly at mharry@DevExpress.com. You can also follow him on Twitter: http://twitter.com/mehulharry
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.