The following snippets shows how to set the default cell formatting.
Dim cellFormatSettings As New FormatSettings()
cellFormatSettings.BorderColor = Colors.Blue
cellFormatSettings.BorderStyle = Infragistics.Excel.CellBorderLineStyle.Double
cellFormatSettings.FillPattern = Infragistics.Excel.FillPatternStyle.DiagonalStripe
cellFormatSettings.FillPatternForegroundColor = Colors.White
cellFormatSettings.FillPatternBackgroundColor = Colors.Black
cellFormatSettings.FontColor = Colors.Red
cellFormatSettings.FontFamily = New FontFamily("Times New Roman")
cellFormatSettings.FontSize = New Infragistics.Windows.DeviceUnitLength(14, Infragistics.Windows.DeviceUnitType.Point)
cellFormatSettings.FontWeight = FontWeights.Bold
cellFormatSettings.HorizontalAlignment = Infragistics.Excel.HorizontalCellAlignment.Center
DataPresenterExcelExporter.SetExcelCellFormatSettings(Me.Grid.FieldSettings, cellFormatSettings)
'Declaration
Public Shared ReadOnly FillPatternBackgroundColorProperty As DependencyProperty
FormatSettings cellFormatSettings = new FormatSettings();
cellFormatSettings.BorderColor = Colors.Blue;
cellFormatSettings.BorderStyle = Infragistics.Excel.CellBorderLineStyle.Double;
cellFormatSettings.FillPattern = Infragistics.Excel.FillPatternStyle.DiagonalStripe;
cellFormatSettings.FillPatternForegroundColor = Colors.White;
cellFormatSettings.FillPatternBackgroundColor = Colors.Black;
cellFormatSettings.FontColor = Colors.Red;
cellFormatSettings.FontFamily = new FontFamily("Times New Roman");
cellFormatSettings.FontSize = new Infragistics.Windows.DeviceUnitLength(14, Infragistics.Windows.DeviceUnitType.Point);
cellFormatSettings.FontWeight = FontWeights.Bold;
cellFormatSettings.HorizontalAlignment = Infragistics.Excel.HorizontalCellAlignment.Center;
DataPresenterExcelExporter.SetExcelCellFormatSettings(this.Grid.FieldSettings, cellFormatSettings);
'Declaration
Public Shared ReadOnly FillPatternBackgroundColorProperty As DependencyProperty
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings>
<igExcelExporter:DataPresenterExcelExporter.ExcelCellFormatSettings>
<igExcelExporter:FormatSettings
BorderColor="Blue"
BorderStyle="Double"
FillPatternForegroundColor="White"
FillPatternBackgroundColor="Black"
FillPattern="DiagonalStripe"
FontColor="Red"
FontFamily="Times New Roman"
FontWeight="Bold"
HorizontalAlignment="Center">
<igExcelExporter:FormatSettings.FontSize>
<igWindows:DeviceUnitLength UnitType="Point" Value="14" />
</igExcelExporter:FormatSettings.FontSize>
</igExcelExporter:FormatSettings>
</igExcelExporter:DataPresenterExcelExporter.ExcelCellFormatSettings>
</igDP:FieldSettings>
</igDP:XamDataGrid.FieldSettings>
'Declaration
Public Shared ReadOnly FillPatternBackgroundColorProperty As DependencyProperty
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2