Xceed DataGrid for Silverlight Documentation
ClearColumnElement Method


The associated element.
Will be called on all column element instances—both in the viewport and in the recycling pool. This is the time, if required, to undo was was done in PrepareColumnElement (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.
Syntax
'Declaration
 
Protected Overridable Sub ClearColumnElement( _
   ByVal element As FrameworkElement _
) 
'Usage
 
Dim instance As DataGridControl
Dim element As FrameworkElement
 
instance.ClearColumnElement(element)
protected virtual void ClearColumnElement( 
   FrameworkElement element
)

Parameters

element
The associated element.
Remarks

If a grouping, sorting, or filtering operation is made, all recyclable elements will be cleared and the initialization process from PrepareColumnElement to DetachColumnElement will be restarted.

The base implementations do not need to be called when overriding the PrepareColumnElement, AttachColumnElement, DetachColumnElement, and ClearColumnElement methods

Requirements

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

See Also

Reference

DataGridControl Class
DataGridControl Members

Send Feedback