ComponentOne DataGrid for WPF and Silverlight
CreateCellContent Method (DataGridColumn)

C1.Silverlight.DataGrid Namespace > DataGridColumn Class : CreateCellContent Method
This parameter might be used to have different cell content depending on the row. In most cases this parameter won't be used
Creates the visual element that will be used to display the info inside a cell of this column.
Syntax
'Declaration
 
Public MustOverride Function CreateCellContent( _
   ByVal row As DataGridRow _
) As System.Windows.FrameworkElement
public abstract System.Windows.FrameworkElement CreateCellContent( 
   DataGridRow row
)

Parameters

row
This parameter might be used to have different cell content depending on the row. In most cases this parameter won't be used

Return Value

Visual element used to display the content of a cell.
Remarks
This method is only called if no cell content is found in the shared pool matching the recycling key returned by the method GetCellContentRecyclingKey.
Example
return new TextBlock();
See Also

Reference

DataGridColumn Class
DataGridColumn Members
GetCellContentRecyclingKey
BindCellContent
UnbindCellContent