IDataFitler as related .Refresh

Grids for WPF Forum

Posted 9 years ago by jeff jarrell
Version: 11.1.0543
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?


Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
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 9 years ago by jeff jarrell
Ok. Thanks.
The latest build of this product (v2019.1 build 0685) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.