Filtering a GridView on a column using checkboxes
-
Hi, I have a
GridView
which is showing a number of records. Each record can be grouped by a column called "Status" and there are several possible status values, e.g. New, Open, Closed, Deferred, etc. I've added a drop-down list and a button which allows me to choose one status value to be displayed in the list. I do this by setting the .FilterExpression
property on myGridView
and this works great. However, now there are loads of records on the system, I really need to be able to apply one or *more* status values to filter theGridView
on. So I'd like to be able to choose, say, "New" and "Deferred". I started off by adding a number of checkboxes, one for each possible status with the idea that I'd read the values and build a suitable filter expression but it's really clumsy looking. What I'm looking for is a more elegant way of building up myFilterExpression
string using checkboxes. Can anyone suggest an approach? Thanks - and have a great weekend :) -
Hi, I have a
GridView
which is showing a number of records. Each record can be grouped by a column called "Status" and there are several possible status values, e.g. New, Open, Closed, Deferred, etc. I've added a drop-down list and a button which allows me to choose one status value to be displayed in the list. I do this by setting the .FilterExpression
property on myGridView
and this works great. However, now there are loads of records on the system, I really need to be able to apply one or *more* status values to filter theGridView
on. So I'd like to be able to choose, say, "New" and "Deferred". I started off by adding a number of checkboxes, one for each possible status with the idea that I'd read the values and build a suitable filter expression but it's really clumsy looking. What I'm looking for is a more elegant way of building up myFilterExpression
string using checkboxes. Can anyone suggest an approach? Thanks - and have a great weekend :)