Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxGridView - How to display only filtered values in CheckedList HeaderFilter when a filter is applied to a column

$
0
0

According to ASPxGridView design, when the CheckedList HeaderFilter is displayed for a column with a filter applied, it displays all possible column values in the CheckedList. This example illustrates how to overcome this behavior and always display only filtered values in the CheckedList.

In this example the ASPxGridView.HeaderFilterFillItems event handler is used to get all available unique column values by iterating through all ASPxGridView rows and removing unnecessary items from the e.Values collection.

Note that this approach would not work if the server-mode binding is used. In this case, get all available unique column values directly from your database server.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>