Version

ClearDataItems Method (IDataBoundControl)

Called during the databind operation to notify the Control that the Items collection that is being data bound should be cleared of any existing items so that data binding can repopulate the items.
Syntax
'Declaration
 
Sub ClearDataItems() 
void ClearDataItems()
Remarks
A derived Control class can override the ClearDataItems virtual method so that items do not get cleared prior to a databind operation. This results in the newly bound items being appended to the existing items.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, 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