Xceed.Silverlight.DataGrid.v2.0 Assembly > Xceed.Silverlight.DataGrid Namespace > DataGridControl Class : AttachColumnElement Method |
'Declaration Protected Overridable Sub AttachColumnElement( _ ByVal element As FrameworkElement, _ ByVal column As Column _ )
'Usage Dim instance As DataGridControl Dim element As FrameworkElement Dim column As Column instance.AttachColumnElement(element, column)
protected virtual void AttachColumnElement( FrameworkElement element, Column column )
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 AttachColumnElement method can be called consecutively multiple times without calling DetachColumnElement between each call. Every layout pass calls AttachColumnElement for each element. If an element is in the viewport and that remains in the viewport during the next layout pass, another call to AttachColumnElement—with the same parameters as the first call—will be made. This behavior was designed to allow a element to be "refreshed", if required.
The base implementations do not need to be called when overriding the PrepareColumnElement, AttachColumnElement, DetachColumnElement, and ClearColumnElement methods.
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family