ComponentOne DataGrid for WPF and Silverlight
Refresh Method (C1DataGrid)

C1.Silverlight.DataGrid Namespace > C1DataGrid Class : Refresh Method
When set to true keeps the current ui elements in order to be used in next layout pass.
if set to true refreshes row presenters.
if set to true refreshes cell presenters.
if set to true refreshes column headers presenters.
if set to true refreshes row header presenters.
Recreate all the visual elements of the C1DataGrid.
Syntax
'Declaration
 
Public Sub Refresh( _
   Optional ByVal recycle As System.Boolean, _
   Optional ByVal refreshRows As System.Boolean, _
   Optional ByVal refreshCells As System.Boolean, _
   Optional ByVal refreshColumnHeaders As System.Boolean, _
   Optional ByVal refreshRowHeaders As System.Boolean _
) 
public void Refresh( 
   System.bool recycle,
   System.bool refreshRows,
   System.bool refreshCells,
   System.bool refreshColumnHeaders,
   System.bool refreshRowHeaders
)

Parameters

recycle
When set to true keeps the current ui elements in order to be used in next layout pass.
refreshRows
if set to true refreshes row presenters.
refreshCells
if set to true refreshes cell presenters.
refreshColumnHeaders
if set to true refreshes column headers presenters.
refreshRowHeaders
if set to true refreshes row header presenters.
Remarks
The creation of the elements is delegated to the Silverlight layout mechanism, so if you query a visual element after calling this method (e.g. grid[0,0].Presenter) it will return nothing, if you need to access the elements you will need to call FrameworkElement.UpdateLayout method to force Silverlight layout to pass.
See Also

Reference

C1DataGrid Class
C1DataGrid Members