ComponentOne DataGrid for WPF and Silverlight
UnbindCellContent Method (DataGridColumn)

C1.Silverlight.DataGrid Namespace > DataGridColumn Class : UnbindCellContent Method
Visual element which is currently bound to the row.
The row currently bound to the cellContent.
Unbinds the content of the cell.
Syntax
'Declaration
 
Public Overridable Sub UnbindCellContent( _
   ByVal cellContent As System.Windows.FrameworkElement, _
   ByVal row As DataGridRow _
) 
public virtual void UnbindCellContent( 
   System.Windows.FrameworkElement cellContent,
   DataGridRow row
)

Parameters

cellContent
Visual element which is currently bound to the row.
row
The row currently bound to the cellContent.
Remarks
This method is called before the cell content is recycled. If you set the DataContext in the BindCellContent method, you must set it to null here to avoid memory leaking.
See Also

Reference

DataGridColumn Class
DataGridColumn Members
GetCellContentRecyclingKey
CreateCellContent
BindCellContent