IDataFitler as related .Refresh

Grids for WPF Forum

Posted 8 years ago by jeff jarrell
Version: 11.1.0543
Avatar
I have an editor in the PropertyGrid that will need to force everything through the IDataFilter again. As it sits, if I call PropertyGrid.Refresh() the propertygrid calls back through the DataFactory again (ours is custom) and completely rebuilds the propertyGrid. This is a big disconcerting flicker so to speak. Is there anything a little less than .Refresh that will trigger the IDataFilter?

Thanks,
jeff

Comments (2)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jeff,

The IDataFilter interface specifies that a FilterChanged event must be implemented. If you fire this event, then the PropertyGrid will tell the associated CollectionView to reapply the filter. This would by-pass the extra call into the DataFactory.

The containers (i.e. PropertyGridDataAccessorItem) will still have to be recreated/arranged/measured, due to how CollectionView works. So it's unlikely to increase the performance.


Actipro Software Support

Posted 8 years ago by jeff jarrell
Avatar
Ok. Thanks.
The latest build of this product (v2018.1 build 0675) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.