ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/DataGridControl.cs
/// <summary>
/// Calling this method will enable the grid's current view to be styled.
/// If any implicit Style exits, it will be immediately applied.
/// </summary>
Calling this method will enable the grid's current view to be styled.
If any implicit Style exits, it will be immediately applied.
Calling this method will enable the grid ' s current view to be styled . If any implicit Style exits it will be immediately applied .
private void InvalidateViewStyle()
    {
      if( this.IsPrinting )
      {
        Xceed.Wpf.DataGrid.Views.ViewBase viewBase = this.GetView();
        if( LogicalTreeHelper.GetParent( viewBase ) == null )
        {
          this.AddLogicalChild( viewBase );
        }
      }
      else
      {
        this.AddLogicalChild( this.GetView() );
      }
    }
private void InvalidateViewStyle ( ) { if ( this . IsPrinting ) { Xceed . Wpf . DataGrid . Views . ViewBase viewBase = this . GetView ( ) ; if ( LogicalTreeHelper . GetParent ( viewBase ) == null ) { this . AddLogicalChild ( viewBase ) ; } } else { this . AddLogicalChild ( this . GetView ( ) ) ; } }
Calling this method will enable the grid's current view to be styled.
Calling this method will enable the grid ' s current view to be styled .
// If more than one DataGridPaginator is paginating, the ViewStyle is already invalidated and // the PrintView is already a logical child.