I want to filter data in GridView by a property automatically,
but I don't want to show the property in GridView as a column.
So I have a problem with it.
In my design, I have a property called "IsVisible" in Entity.
And in GridView, there is a column filled with Button.
To filter data, I also added a FilterDescriptor below when GridView is constructed.
FilterDescriptor treeFilter =
treeFilter.Operator = FilterOperator.IsEqualTo;
There is a column filled with Buttons.
The value of "IsVisible" is true by default.
I desire to change the value of IsVisible into false when I clicked the button(this step is working),
and filter the row which IsVisible is false automatically(this step don't work).
If I show IsVisible
as a Checkbox column,
it works automatically
when I edited IsVisible
cell to change IsVisible into false,and lost focus from IsVisible
I think if there is a trigger be triggered when I edited IsVisible on Checkbox cell,
but the trigger don't work in the way of changing property directly?
Is there any way to filter the rows when specified property changed automatically?