ComponentOne DataGrid for WPF and Silverlight
C1.WPF.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.

In This Topic
    Refresh Method (C1DataGrid)
    In This Topic
    Recreate all the visual elements of the C1DataGrid.
    Syntax
    'Declaration
     
    
    Public Sub Refresh( _
       Optional ByVal recycle As Boolean, _
       Optional ByVal refreshRows As Boolean, _
       Optional ByVal refreshCells As Boolean, _
       Optional ByVal refreshColumnHeaders As Boolean, _
       Optional ByVal refreshRowHeaders As Boolean _
    ) 

    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