开发者

Multiple-condition gridview filtering

What would be the best way to provide web users with a possibility to easily filter multi-paged ASP .NET gridviews (>, <, ==, !=, like, etc. by a number of text / number / date fields) with a minimum customization on the server side?

I found one control that looks interesting (http://ammar.tawabini.com/2010/09/gridview-ajax-filter.html) but I'm wondering if there's some solution, which is more known / used / widespread 开发者_如何转开发/ accepted by the community.


DevExpress has awesome grid with filter builder: http://demos.devexpress.com/ASPxGridViewDemos/Filtering/FilterBuilder.aspx


If you are using datasource controls you can use WhereParameters. LINQ -- Entity Framework

You can use ControlParameters to populate from values in your search form.

All this can be done with out any code behind. Do not confuse this with being easier or simpler but I think this is what you are looking for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜