Pages

Men

rh

7/16/2013

ASP.NET GridView Filter Template (coming soon in v2013 vol 1)

Customize the filter row any way you choose with the DevExpress ASP.NET GridView in our first major release of DXperience for 2013.

New Filter Template

The DevExpress ASP.NET GridView has added a new template for the Filter Row. The Filter Row allows your end-users to filter the GridView easily and quickly. For example, in the grid image below, I’ve filtered it to find all the produce that has been discontinued:

Visual Studio Designer Support

When you’re configuring the DevExpress ASP.NET GridView in Visual Studio, you can use the smart tag and select "Edit Templates”. Then you’ll see the list of available templates for editing:


Once you select the “FilterTemplate”, the designer will allow you enter just about anything you want. That’s why ASP.NET Templates are so useful! In the grid below, I’ve added an Image and Text to the Filter Row for the Command Column. But I could enter just about anything else here like another control for filtering.


And the final result is a stunning grid with the exact output that I was looking for:

Source View Support

If you don’t like the designer, you can use the Source View too:

Source collected from codeproject.com

No comments :

Post a Comment