Xceed.Silverlight.DataGrid.v2.0 Assembly > Xceed.Silverlight.DataGrid Namespace > DataGridControl Class : ClearElement Method |
Overload | Description |
---|---|
ClearElement | 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. |
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.
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family