Xceed DataGrid for Silverlight Documentation
AttachColumnElement Method


The associated element.
The associated column.
Continues the column element initialization process with the item to which the element will be associated. Once the element has been fully initialized, it will be displayed on screen.
Syntax
'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
)

Parameters

element
The associated element.
column
The associated column.
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 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.

Requirements

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

See Also

Reference

DataGridControl Class
DataGridControl Members

Send Feedback