Version

DataSourceResetBehavior Property

Specifies what action to take when Reset notification is recieved from the data source.
Syntax
'Declaration
 
Public Property DataSourceResetBehavior As DataSourceResetBehavior
public DataSourceResetBehavior DataSourceResetBehavior {get; set;}
Remarks

By default the data presenter will keep existing data records whose underlying data items are still in the data list when the data list sends a Reset notification. It does so by looping through the data list and for each underlying data item finding corresponding data record. It keeps all such data records for which corresponding data items are still in the underlying list so it doesn't have to re-create them.

Above process may be undesirable if your underlying data list is virtualized - that is it is delaying loading its data as the data items are accessed. In which case you can set the DataSourceResetBehavior property to either DiscardExistingRecords or ReuseRecordsViaIndexOf which will prevent the data presenter from looping through the data list and thus accessing all the data items. See DataSourceResetBehavior for more formation regarding what each of these options do. Note however that the in above process the data items are accessed from the list however properties off the data items are not accessed.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also