Xceed DataGrid for Silverlight Documentation
ClearElement Method


Will be called on all element instances—both in the viewport and in the recycling pool. This is the time, if required, to undo was was done in PrepareElement (e.g., unregister from events to prevent memory leaks). At this point, the reference to the element will be destroyed and the garbage collector will take care of releasing any allocated memory.
Overload List
OverloadDescription
ClearElementWill be called on all element instances—both in the viewport and in the recycling pool. This is the time, if required, to undo was was done in PrepareElement (e.g., unregister from events to prevent memory leaks). At this point, the reference to the element will be destroyed and the garbage collector will take care of releasing any allocated memory.  
Remarks

If a grouping, sorting, or filtering operation is made, all recyclable rows will be cleared and the initialization process from PrepareElement to DetachElement will be restarted.

The base implementations do not need to be called when overriding the PrepareElement, AttachElement, DetachElement, and ClearElement methods.

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridControl Class
DataGridControl Members

Paths and Containers

Container Recycling

Send Feedback