This question is locked. New answers and comments are not allowed.
Hi,
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.
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 cell .
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?
Best regards,
Liu
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.
public
TreeGridView()
:
base
()
{
FilterDescriptor treeFilter =
new
FilterDescriptor();
treeFilter.Member =
"IsVisible"
;
treeFilter.Value =
true
;
treeFilter.Operator = FilterOperator.IsEqualTo;
FilterDescriptors.Add(treeFilter);
}
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 cell .
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?
Best regards,
Liu