Class DataGridStyle
Represents the style of a SfDataGrid control.
Implements
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class DataGridStyle : Element, IDisposable
Remarks
DataGridStyle allows you to set style for all the elements in a SfDataGrid control. To apply a custom style to change the visual appearance of all the elements in the SfDataGrid, write a class overriding from DataGridStyle and assigning it to the GridStyle property.
Constructors
DataGridStyle()
Initializes a new instance of the DataGridStyle class.
Declaration
public DataGridStyle()
Fields
AlternatingRowColorProperty
Identifies the AlternatingRowColor bindable property.
Declaration
public static readonly BindableProperty AlternatingRowColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
CaptionSummaryFontAttributesProperty
Identifies the CaptionSummaryFontAttributes bindable property.
Declaration
public static readonly BindableProperty CaptionSummaryFontAttributesProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
CaptionSummaryRowBackgroundColorProperty
Identifies the CaptionSummaryRowBackgroundColor bindable property.
Declaration
public static readonly BindableProperty CaptionSummaryRowBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
CaptionSummaryRowForegroundColorProperty
Identifies the CaptionSummaryRowForegroundColor bindable property.
Declaration
public static readonly BindableProperty CaptionSummaryRowForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
ColumnDraggingIndicatorLineColorProperty
Identifies the ColumnDraggingIndicatorLineColor bindable property.
Declaration
public static readonly BindableProperty ColumnDraggingIndicatorLineColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
ColumnDragViewBackgroundColorProperty
Identifies the ColumnDragViewBackgroundColor bindable property.
Declaration
public static readonly BindableProperty ColumnDragViewBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
ColumnDragViewBorderColorProperty
Identifies the ColumnDragViewBorderColor bindable property.
Declaration
public static readonly BindableProperty ColumnDragViewBorderColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
ColumnDragViewForegroundColorProperty
Identifies the ColumnDragViewForegroundColor bindable property.
Declaration
public static readonly BindableProperty ColumnDragViewForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
CurrentCellBorderColorProperty
Identifies the CurrentCellBorderColor bindable property.
Declaration
public static readonly BindableProperty CurrentCellBorderColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
CurrentCellBorderWidthProperty
Identifies the CurrentCellBorderWidth bindable property.
Declaration
public static readonly BindableProperty CurrentCellBorderWidthProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
FrozenIndicatorLineColorProperty
Identifies the FrozenIndicatorLineColor bindable property.
Declaration
public static readonly BindableProperty FrozenIndicatorLineColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GridBackgroundColorProperty
Identifies the GridBackgroundColor bindable property.
Declaration
public static readonly BindableProperty GridBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GridCellBorderColorProperty
Identifies the GridCellBorderColor bindable property.
Declaration
public static readonly BindableProperty GridCellBorderColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GridCellBorderWidthProperty
Identifies the GridCellBorderWidth bindable property.
Declaration
public static readonly BindableProperty GridCellBorderWidthProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GridLinesVisibilityProperty
Identifies the GridLinesVisibility bindable property.
Declaration
public static readonly BindableProperty GridLinesVisibilityProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GroupCollapseIconProperty
Identifies the GroupCollapseIcon bindable property.
Declaration
public static readonly BindableProperty GroupCollapseIconProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GroupExpandIconProperty
Identifies the GroupExpandIcon bindable property.
Declaration
public static readonly BindableProperty GroupExpandIconProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GroupSummaryFontAttributesProperty
Identifies the GroupSummaryFontAttributes bindable property.
Declaration
public static readonly BindableProperty GroupSummaryFontAttributesProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GroupSummaryRowBackgroundColorProperty
Identifies the GroupSummaryRowBackgroundColor bindable property.
Declaration
public static readonly BindableProperty GroupSummaryRowBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
GroupSummaryRowForegroundColorProperty
Identifies the GroupSummaryRowForegroundColor bindable property.
Declaration
public static readonly BindableProperty GroupSummaryRowForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
HeaderBackgroundColorProperty
Identifies the HeaderBackgroundColor bindable property.
Declaration
public static readonly BindableProperty HeaderBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
HeaderCellBorderColorProperty
Identifies the HeaderCellBorderColor bindable property.
Declaration
public static readonly BindableProperty HeaderCellBorderColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
HeaderCellBorderWidthProperty
Identifies the HeaderCellBorderWidth bindable property.
Declaration
public static readonly BindableProperty HeaderCellBorderWidthProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
HeaderForegroundColorProperty
Identifies the HeaderForegroundColor bindable property.
Declaration
public static readonly BindableProperty HeaderForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
IndentCellBackgroundColorProperty
Identifies the IndentCellBackgroundColor bindable property.
Declaration
public static readonly BindableProperty IndentCellBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
LoadMoreViewBackgroundColorProperty
Identifies the LoadMoreViewBackgroundColor bindable property.
Declaration
public static readonly BindableProperty LoadMoreViewBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
LoadMoreViewForegroundColorProperty
Identifies the LoadMoreViewForegroundColor bindable property.
Declaration
public static readonly BindableProperty LoadMoreViewForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
ResizingIndicatorIconProperty
Identifies the ResizingIndicatorIcon bindable property.
Declaration
public static readonly BindableProperty ResizingIndicatorIconProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
ResizingIndicatorLineColorProperty
Identifies the ResizingIndicatorLineColor bindable property.
Declaration
public static readonly BindableProperty ResizingIndicatorLineColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
RowBackgroundColorProperty
Identifies the RowBackgroundColor bindable property.
Declaration
public static readonly BindableProperty RowBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
RowDraggingIndicatorLineColorProperty
Identifies the RowDraggingIndicatorLineColor bindable property.
Declaration
public static readonly BindableProperty RowDraggingIndicatorLineColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
RowDragViewBackgroundColorProperty
Identifies the RowDragViewBackgroundColor bindable property.
Declaration
public static readonly BindableProperty RowDragViewBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
RowDragViewBorderColorProperty
Identifies the RowDragViewBorderColor bindable property.
Declaration
public static readonly BindableProperty RowDragViewBorderColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
RowDragViewForegroundColorProperty
Identifies the RowDragViewForegroundColor bindable property.
Declaration
public static readonly BindableProperty RowDragViewForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
RowForegroundColorProperty
Identifies the RowForegroundColor bindable property.
Declaration
public static readonly BindableProperty RowForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
SelectionBackgroundColorProperty
Identifies the SelectionBackgroundColor bindable property.
Declaration
public static readonly BindableProperty SelectionBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
SelectionForegroundColorProperty
Identifies the SelectionForegroundColor bindable property.
Declaration
public static readonly BindableProperty SelectionForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
SortAscendingIconProperty
Identifies the SortAscendingIcon bindable property.
Declaration
public static readonly BindableProperty SortAscendingIconProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
SortDescendingIconProperty
Identifies the SortDescendingIcon bindable property.
Declaration
public static readonly BindableProperty SortDescendingIconProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
StackedHeaderBackgroundColorProperty
Identifies the StackedHeaderBackgroundColor bindable property.
Declaration
public static readonly BindableProperty StackedHeaderBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
StackedHeaderForegroundColorProperty
Identifies the StackedHeaderForegroundColor bindable property.
Declaration
public static readonly BindableProperty StackedHeaderForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
SummaryVerticalLineVisibilityProperty
Identifies the SummaryVerticalLineVisibility bindable property.
Declaration
public static readonly BindableProperty SummaryVerticalLineVisibilityProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
SwitchOffColorProperty
Identifies the SwitchOffColor bindable property.
Declaration
public static readonly BindableProperty SwitchOffColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
SwitchOnColorProperty
Identifies the SwitchOnColor bindable property.
Declaration
public static readonly BindableProperty SwitchOnColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
TableSummaryFontAttributesProperty
Identifies the TableSummaryFontAttributes bindable property.
Declaration
public static readonly BindableProperty TableSummaryFontAttributesProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
TableSummaryRowBackgroundColorProperty
Identifies the TableSummaryRowBackgroundColor bindable property.
Declaration
public static readonly BindableProperty TableSummaryRowBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
TableSummaryRowForegroundColorProperty
Identifies the TableSummaryRowForegroundColor bindable property.
Declaration
public static readonly BindableProperty TableSummaryRowForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
UnboundRowBackgroundColorProperty
Identifies the UnboundRowBackgroundColor bindable property.
Declaration
public static readonly BindableProperty UnboundRowBackgroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
UnboundRowFontAttributesProperty
Identifies the UnboundRowFontAttributes bindable property.
Declaration
public static readonly BindableProperty UnboundRowFontAttributesProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
UnboundRowForegroundColorProperty
Identifies the UnboundRowForegroundColor bindable property.
Declaration
public static readonly BindableProperty UnboundRowForegroundColorProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
Properties
AlternatingRowColor
Gets or sets the alternate row color of the SfDataGrid. The alternation count of the rows for which the alternate row color can be customized by using AlternationCount property.
Declaration
public Color AlternatingRowColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The alternate row color of the SfDataGrid. |
Remarks
SfDataGrid allows the user to set alternate row color by setting AlternatingRowColor property to GridStyle property. SfDataGrid allows you to customize the rows for which the alternate row color needs to be updated based on the AlternationCount property.
Examples
dataGrid.GridStyle.AlternatingRowColor = Color.Fuschia;
dataGrid.AlternationCount = 3;
See Also
CaptionSummaryFontAttributes
Gets or sets the Xamarin.Forms.FontAttributes of the Caption summary row.
Declaration
public FontAttributes CaptionSummaryFontAttributes { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.FontAttributes |
Examples
The following code example demonstrates how to define caption summary row font attribute.
dataGrid.GridStyle.CaptionSummaryFontAttributes = FontAttributess.Bold;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle CaptionSummaryFontAttributes = "Bold" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
CaptionSummaryRowBackgroundColor
Gets or sets the background color of the caption summary row.
Declaration
public Color CaptionSummaryRowBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define caption summary row background color.
dataGrid.GridStyle.CaptionSummaryRowBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle CaptionSummaryRowBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
CaptionSummaryRowForegroundColor
Gets or sets the foreground color of the caption summary row.
Declaration
public Color CaptionSummaryRowForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define caption summary row foreground color.
dataGrid.GridStyle.CaptionSummaryRowForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle CaptionSummaryRowForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
ColumnDraggingIndicatorLineColor
Gets or sets the color of the column drag view indicator line that is drawn across the vertical span of the datagrid.
Declaration
public Color ColumnDraggingIndicatorLineColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define column drag view indicator color.
dataGrid.GridStyle.ColumnDraggingIndicatorLineColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle ColumnDraggingIndicatorLineColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
ColumnDragViewBackgroundColor
Gets or sets the background color of the column drag view.
Declaration
public Color ColumnDragViewBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define load more view foreground color.
dataGrid.GridStyle.ColumnDragViewBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle ColumnDragViewBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
ColumnDragViewBorderColor
Gets or sets the border color of the column drag view.
Declaration
public Color ColumnDragViewBorderColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define column drag view border color.
dataGrid.GridStyle.ColumnDragViewBorderColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle ColumnDragViewBorderColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
ColumnDragViewForegroundColor
Gets or sets the foreground color of the column drag view.
Declaration
public Color ColumnDragViewForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define column drag view foreground color.
dataGrid.GridStyle. ColumnDragViewForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle ColumnDragViewForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
CurrentCellBorderColor
Gets or sets the border color of the current cell.
Declaration
public Color CurrentCellBorderColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define current cell border color.
dataGrid.GridStyle.CurrentCellBorderColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle CurrentCellBorderColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
CurrentCellBorderWidth
Gets or sets the border width of the current cell.
Declaration
public double CurrentCellBorderWidth { get; set; }
Property Value
| Type |
|---|
| System.Double |
Examples
The following code example demonstrates how to define current cell border width.
dataGrid.GridStyle.CurrentCellBorderWidth = 3;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle CurrentCellBorderWidth = "3" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
FrozenIndicatorLineColor
Gets or sets the indicator line color of the frozen view.
Declaration
public Color FrozenIndicatorLineColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define frozen row indicator color.
dataGrid.GridStyle.FrozenIndicatorLineColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle FrozenIndicatorLineColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GridBackgroundColor
Gets or sets the background color of the dataGrid.
Declaration
public Color GridBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to set the background color of the data grid.
dataGrid.GridStyle.GridBackgroundColor = Color.Red;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GridBackgroundColor = "Red" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GridCellBorderColor
Gets or sets the border color of the record.
Declaration
public Color GridCellBorderColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define record border color.
dataGrid.GridStyle.GridCellBorderColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GridCellBorderColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GridCellBorderWidth
Gets or sets the border width of the GridCell.
Declaration
public float GridCellBorderWidth { get; set; }
Property Value
| Type |
|---|
| System.Single |
Examples
The following code example demonstrates how to define grid cell border width.
dataGrid.GridStyle.GridCellBorderWidth = 2;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GridCellBorderWidth = "2" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GridLinesVisibility
Gets or sets the border appearance style of the dataGrid.
Declaration
public GridLinesVisibility GridLinesVisibility { get; set; }
Property Value
| Type |
|---|
| GridLinesVisibility |
Examples
The following code example demonstrates how to define grid line visibility.
dataGrid.GridStyle.GridLinesVisibility = GridLinesVisibility.Both;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GridLinesVisibility = "Both" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GroupCollapseIcon
Gets or sets the Xamarin.Forms.ImageSource of the group collapse icon.
Declaration
public ImageSource GroupCollapseIcon { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.ImageSource |
Examples
The following code example demonstrates how to define group collapse icon.
dataGrid.GridStyle.GroupCollapseIcon = viewModel.GroupCollapseIcon;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GroupCollapseIcon = "{Binding GroupCollapseIcon }" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GroupExpandIcon
Gets or sets the Xamarin.Forms.ImageSource of the group expander icon.
Declaration
public ImageSource GroupExpandIcon { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.ImageSource |
Examples
The following code example demonstrates how to define group expander icon.
dataGrid.GridStyle.GroupExpandIcon = viewModel.GroupExpandIcon;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GroupExpandIcon = "{Binding GroupExpandIcon }" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GroupSummaryFontAttributes
Gets or sets the Xamarin.Forms.FontAttributes of the GridGroupSummaryRow.
Declaration
public FontAttributes GroupSummaryFontAttributes { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.FontAttributes |
Examples
The following code example demonstrates how to define group summary row font attribute.
dataGrid.GridStyle.GroupSummaryFontAttributes = FontAttributess.Bold;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GroupSummaryFontAttributes = "Bold" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GroupSummaryRowBackgroundColor
Gets or sets the background color of the group summary row.
Declaration
public Color GroupSummaryRowBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define group summary row background color.
dataGrid.GridStyle.GroupSummaryRowBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GroupSummaryRowBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
GroupSummaryRowForegroundColor
Gets or sets the foreground color of the group summary row.
Declaration
public Color GroupSummaryRowForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define group summary row foreground color.
dataGrid.GridStyle.GroupSummaryRowForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle GroupSummaryRowForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
HeaderBackgroundColor
Gets or sets the background color of the header cell.
Declaration
public Color HeaderBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define header cell background color.
dataGrid.GridStyle.HeaderBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle HeaderBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
HeaderCellBorderColor
Gets or sets the border color of the header.
Declaration
public Color HeaderCellBorderColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define header border color .
dataGrid.GridStyle.HeaderCellBorderColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle HeaderCellBorderColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
HeaderCellBorderWidth
Gets or sets the border width of the header cell.
Declaration
public float HeaderCellBorderWidth { get; set; }
Property Value
| Type |
|---|
| System.Single |
Examples
The following code example demonstrates how to define header cell border width.
dataGrid.GridStyle.HeaderCellBorderWidth = 2;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle HeaderCellBorderWidth = "2" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
HeaderForegroundColor
Gets or sets the foreground color of the header cell text.
Declaration
public Color HeaderForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define header cell text color.
dataGrid.GridStyle.HeaderForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle HeaderForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
IndentCellBackgroundColor
Gets or sets the background color of the indent cell.
Declaration
public Color IndentCellBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define indent cell background color.
dataGrid.GridStyle.IndentCellBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle IndentCellBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
LoadMoreViewBackgroundColor
Gets or sets the background color of the LoadMoreView.
Declaration
public Color LoadMoreViewBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define load more view background color.
dataGrid.GridStyle.LoadMoreViewBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle LoadMoreViewBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
LoadMoreViewForegroundColor
Gets or sets the foreground color of the LoadMoreView.
Declaration
public Color LoadMoreViewForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define load more view foreground color.
dataGrid.GridStyle.LoadMoreViewForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle LoadMoreViewForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
ResizingIndicatorIcon
Gets or sets the Xamarin.Forms.ImageSource of the resizing indicator icon.
Declaration
public ImageSource ResizingIndicatorIcon { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.ImageSource |
Examples
The following code example demonstrates how to define resizing indicator icon.
dataGrid.GridStyle.ResizingIndicatorIcon = viewModel.ResizingIndicatorIcon;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle ResizingIndicatorIcon = "{Binding ResizingIndicatorIcon }" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
ResizingIndicatorLineColor
Gets or sets the color of the column resizing indicator line color.
Declaration
public Color ResizingIndicatorLineColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define resizing indicator color.
dataGrid.GridStyle.ResizingIndicatorLineColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle ResizingIndicatorLineColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
RowBackgroundColor
Gets or sets the background color of the record.
Declaration
public Color RowBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define record background color.
dataGrid.GridStyle.RowBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle RowBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
RowDraggingIndicatorLineColor
Gets or sets the color of the row drag view indicator line that is drawn across the horizontal span of the datagrid.
Declaration
public Color RowDraggingIndicatorLineColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define row drag view indicator color.
dataGrid.GridStyle.RowDraggingIndicatorLineColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle RowDraggingIndicatorLineColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
RowDragViewBackgroundColor
Gets or sets the background color of the row drag view.
Declaration
public Color RowDragViewBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define row drag view background color.
dataGrid.GridStyle.RowDragViewBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle RowDragViewBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
RowDragViewBorderColor
Gets or sets the border color of the row drag view.
Declaration
public Color RowDragViewBorderColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define row drag view border color.
dataGrid.GridStyle.RowDragViewBorderColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle RowDragViewBorderColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
RowDragViewForegroundColor
Gets or sets the foreground color of the row drag view.
Declaration
public Color RowDragViewForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define row drag view foreground color.
dataGrid.GridStyle.RowDragViewForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle RowDragViewForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
RowForegroundColor
Gets or sets the foreground color of the record.
Declaration
public Color RowForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define record text color.
dataGrid.GridStyle.RowForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle RowForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
SelectionBackgroundColor
Gets or sets the selection background color of the selected row.
Declaration
public Color SelectionBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define selection background color.
dataGrid.GridStyle.SelectionBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle SelectionBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
SelectionForegroundColor
Gets or sets the text color of the selected row.
Declaration
public Color SelectionForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define selected row text color.
dataGrid.GridStyle.SelectionForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle SelectionForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
SortAscendingIcon
Gets or sets the Xamarin.Forms.ImageSource of the ascending sort indicator.
Declaration
public ImageSource SortAscendingIcon { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.ImageSource |
Examples
The following code example demonstrates how to define image source of ascending sort icon.
dataGrid.GridStyle.SortAscendingIcon = viewModel.SortAscendingIcon;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle SortAscendingIcon = "{Binding SortAscendingIcon }" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
SortDescendingIcon
Gets or sets the Xamarin.Forms.ImageSource of the descending sort indicator.
Declaration
public ImageSource SortDescendingIcon { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.ImageSource |
Remarks
If the value is null then the rotation animation is provided to the sort indicator SortAscendingIcon.
Examples
The following code example demonstrates how to define image source of descending sort icon.
dataGrid.GridStyle.SortDescendingIcon = viewModel.SortDescendingIcon;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle SortDescendingIcon = "{Binding SortDescendingIcon }" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
StackedHeaderBackgroundColor
Gets or sets the background color of the StackedHeaderRow.
Declaration
public Color StackedHeaderBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define stacked header row background color.
dataGrid.GridStyle.StackedHeaderBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle StackedHeaderBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
StackedHeaderForegroundColor
Gets or sets the foreground color of the StackedHeaderRow.
Declaration
public Color StackedHeaderForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define stacked header row foreground color.
dataGrid.GridStyle.StackedHeaderForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle StackedHeaderForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
SummaryVerticalLineVisibility
Gets or sets a value indicating whether the visibility of the vertical borders in summary rows when ShowSummaryInRow is false.
Declaration
public bool SummaryVerticalLineVisibility { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Examples
The following code example demonstrates how to define change summary row vertical border visibility.
dataGrid.GridStyle.SummaryVerticalLineVisibility = true;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle SummaryVerticalLineVisibility = "True" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
SwitchOffColor
Gets or sets the color of the switches in GridSwitchColumn when it is in OFf state.
Declaration
public Color SwitchOffColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
SwitchOnColor
Gets or sets the color of the switches in GridSwitchColumn when it is in ON state.
Declaration
public Color SwitchOnColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
TableSummaryFontAttributes
Gets or sets the Xamarin.Forms.FontAttributes of the GridTableSummaryRow.
Declaration
public FontAttributes TableSummaryFontAttributes { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.FontAttributes |
Examples
The following code example demonstrates how to define table summary row font attribute.
dataGrid.GridStyle.TableSummaryFontAttributes = FontAttributess.Bold;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle TableSummaryFontAttributes = "Bold" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
TableSummaryRowBackgroundColor
Gets or sets the background color of the table summary row.
Declaration
public Color TableSummaryRowBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define table summary row background color.
dataGrid.GridStyle.TableSummaryRowBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle TableSummaryRowBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
TableSummaryRowForegroundColor
Gets or sets the foreground color of the table summary row.
Declaration
public Color TableSummaryRowForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define table summary row text color.
dataGrid.GridStyle.TableSummaryRowForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle TableSummaryRowForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
UnboundRowBackgroundColor
Gets or sets the backgroundColor color of the Syncfusion.SfDataGrid.XForms.UnboundRow.
Declaration
public Color UnboundRowBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define unbound row background color.
dataGrid.GridStyle.UnboundRowBackgroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle UnboundRowBackgroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
UnboundRowFontAttributes
Gets or sets the Xamarin.Forms.FontAttributes of the Syncfusion.SfDataGrid.XForms.UnboundRow.
Declaration
public FontAttributes UnboundRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.FontAttributes |
Examples
The following code example demonstrates how to define unbound row summary font attribute.
dataGrid.GridStyle.UnboundRowFontAttributes = FontAttributess.Bold;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle UnboundRowFontAttributes = "Bold" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
UnboundRowForegroundColor
Gets or sets the foregroundColor color of the Syncfusion.SfDataGrid.XForms.UnboundRow.
Declaration
public Color UnboundRowForegroundColor { get; set; }
Property Value
| Type |
|---|
| Xamarin.Forms.Color |
Examples
The following code example demonstrates how to define unbound row foreground color.
dataGrid.GridStyle.UnboundRowForegroundColor = Color.Blue;
<?xml version = "1.0" encoding="utf-8" ?>
<ContentPage
xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DataGridDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
xmlns:sfPager="clr-namespace:Syncfusion.SfDataGrid.XForms.DataPager;assembly=Syncfusion.SfDataGrid.XForms"
x:Class="DataGridDemo.MainPage"
Padding="0,50,0,0">
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.GridStyle>
<syncfusion:DefaultStyle UnboundRowForegroundColor = "Blue" />
</syncfusion:SfDataGrid.GridStyle>
</syncfusion:SfDataGrid>
</ContentPage></code></pre>
Methods
Dispose()
Releases the resources used by the component.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |
GetAlternatingRowBackgroundColor()
Gets the AlternatingRow's background color.
Declaration
public virtual Color GetAlternatingRowBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The AlternatingRow's background color. |
GetBordercolor()
Declaration
public virtual Color GetBordercolor()
Returns
| Type |
|---|
| Xamarin.Forms.Color |
GetBorderColor()
Gets the border color of SfDataGrid.
Declaration
public virtual Color GetBorderColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The border color of SfDataGrid. |
GetBorderWidth()
Gets the border width for the grid cells.
Declaration
public virtual float GetBorderWidth()
Returns
| Type | Description |
|---|---|
| System.Single | The width of the grid cell border width. |
GetCaptionSummaryFontAttribute()
Gets the Xamarin.Forms.FontAttributes for the CaptionSummaryRows.
Declaration
public virtual FontAttributes GetCaptionSummaryFontAttribute()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.FontAttributes | Returns the Xamarin.Forms.FontAttributes. |
GetCaptionSummaryRowBackgroundColor()
Gets the CaptionSummaryRow's background color.
Declaration
public virtual Color GetCaptionSummaryRowBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The CaptionSummaryRow's background color. |
GetCaptionSummaryRowBackgroundColor(Group)
Gets the CaptionSummaryRow's background color.
Declaration
public virtual Color GetCaptionSummaryRowBackgroundColor(Group group)
Parameters
| Type | Name | Description |
|---|---|---|
| Group | group | The group. |
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The CaptionSummaryRow's background color. |
GetCaptionSummaryRowForegroundColor()
Gets the CaptionSummaryRow's foreground color.
Declaration
public virtual Color GetCaptionSummaryRowForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The CaptionSummaryRow's foreground color. |
GetCaptionSummaryRowForeGroundColor()
Declaration
public virtual Color GetCaptionSummaryRowForeGroundColor()
Returns
| Type |
|---|
| Xamarin.Forms.Color |
GetCaptionSummaryRowForegroundColor(Group)
Gets the CaptionSummaryRow foreground color for specified group.
Declaration
public virtual Color GetCaptionSummaryRowForegroundColor(Group group)
Parameters
| Type | Name | Description |
|---|---|---|
| Group | group | The group. |
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The CaptionSummaryRow foreground color. |
GetColumnDragViewBackgroundColor()
Gets the column drag view background color.
Declaration
protected virtual Color GetColumnDragViewBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The column drag view background color. |
GetColumnDragViewBorderColor()
Gets the column drag view border color.
Declaration
protected virtual Color GetColumnDragViewBorderColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The column drag view border color. |
GetColumnDragViewForegroundColor()
Gets the column drag view foreground color.
Declaration
protected virtual Color GetColumnDragViewForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The column drag view foreground color. |
GetColumnDragViewIndicatorColor()
Gets the color of the column drag view indicator line that is drawn across the vertical span of the datagrid.
Declaration
public virtual Color GetColumnDragViewIndicatorColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The color of the column drag view indicator line. |
GetCurrentCellBorderColor()
Gets the border color of the current cell which is focused.
Declaration
public virtual Color GetCurrentCellBorderColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The border color of the current cell which is focused. |
GetCurrentCellBorderWidth()
Gets the border thickness of the current cell which is focused.
Declaration
public virtual double GetCurrentCellBorderWidth()
Returns
| Type | Description |
|---|---|
| System.Double | The border thickness of the current cell which is focused. |
GetDataGridBackgroundColor()
Gets the datagrid's client area background color.
Declaration
public virtual Color GetDataGridBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The DataGrid background color. |
GetFrozenIndicatorColor()
Gets the color of the frozen view indicator line.
Declaration
public virtual Color GetFrozenIndicatorColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The color of the frozen view indicator line. |
GetGridLinesVisibility()
Gets the type of the borders to be drawn in SfDataGrid.
Declaration
public virtual GridLinesVisibility GetGridLinesVisibility()
Returns
| Type | Description |
|---|---|
| GridLinesVisibility | The GridLinesVisibility for SfDataGrid. |
GetGroupCollapseIcon()
Gets the Xamarin.Forms.ImageSource for group collapse icon.
Declaration
public virtual ImageSource GetGroupCollapseIcon()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.ImageSource | The Xamarin.Forms.ImageSource of group collapse icon. |
GetGroupExpanderIcon()
Gets the Xamarin.Forms.ImageSource for group expander icon.
Declaration
public virtual ImageSource GetGroupExpanderIcon()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.ImageSource | The Xamarin.Forms.ImageSource of group expander icon. |
GetGroupSummaryFontAttribute()
Gets the Xamarin.Forms.FontAttributes for the GroupSummaryRows.
Declaration
public virtual FontAttributes GetGroupSummaryFontAttribute()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.FontAttributes | Returns the Xamarin.Forms.FontAttributes. |
GetGroupSummaryRowBackgroundColor()
Gets the GroupSummaryRow's background color.
Declaration
public virtual Color GetGroupSummaryRowBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The GroupSummaryRow's background color. |
GetGroupSummaryRowForegroundColor()
Gets the GroupSummaryRow's foreground color.
Declaration
public virtual Color GetGroupSummaryRowForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The GroupSummaryRow's foreground color. |
GetHeaderBackgroundColor()
Gets the header's background color.
Declaration
public virtual Color GetHeaderBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The header's background color. |
GetHeaderBorderColor()
Gets the header's border color.
Declaration
public virtual Color GetHeaderBorderColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The header's border color. |
GetHeaderBorderWidth()
Gets the border width for the header cells.
Declaration
public virtual float GetHeaderBorderWidth()
Returns
| Type | Description |
|---|---|
| System.Single | The width of the grid header cell border width. |
GetHeaderForegroundColor()
Gets the header's foreground color.
Declaration
public virtual Color GetHeaderForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The header's foreground color. |
GetHeaderSortIndicatorDown()
Gets the Xamarin.Forms.ImageSource for header sort down indicator icon.
Declaration
public virtual ImageSource GetHeaderSortIndicatorDown()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.ImageSource | Returns the Xamarin.Forms.ImageSource for the header sort down indicator icon. |
Remarks
If the value is null then the rotation animation is provided to the sort indicator GetHeaderSortIndicatorUp().
GetHeaderSortIndicatorUp()
Gets the Xamarin.Forms.ImageSource for header sort up indicator icon.
Declaration
public virtual ImageSource GetHeaderSortIndicatorUp()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.ImageSource | Returns the Xamarin.Forms.ImageSource for the header sort up indicator icon. |
GetIndentBackgroundColor(RowType)
Gets the IndentCell's background color.
Declaration
public virtual Color GetIndentBackgroundColor(RowType rowType)
Parameters
| Type | Name | Description |
|---|---|---|
| RowType | rowType | The type of DataRow. |
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The IndentCell's background color. |
GetLoadMoreViewBackgroundColor()
Gets the load more view background color.
Declaration
public virtual Color GetLoadMoreViewBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The load more view background color. |
GetLoadMoreViewForegroundColor()
Gets the load more view foreground color.
Declaration
public virtual Color GetLoadMoreViewForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The load more view foreground color. |
GetRecordBackgroundColor()
Gets the record's background color.
Declaration
public virtual Color GetRecordBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The record's background color. |
GetRecordForegroundColor()
Gets the record's foreground color.
Declaration
public virtual Color GetRecordForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The record's foreground color. |
GetResizingIndicatorColor()
Gets the color of the column resizing cursor.
Declaration
public virtual Color GetResizingIndicatorColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The color of the column resizing cursor. |
GetResizingIndicatorIcon()
Gets the Xamarin.Forms.ImageSource for the resizing indicator icon.
Declaration
public virtual ImageSource GetResizingIndicatorIcon()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.ImageSource | Returns the Xamarin.Forms.ImageSource for the resizing indicator icon. |
GetRowDragViewBackgroundColor()
Gets the row drag view background color.
Declaration
protected virtual Color GetRowDragViewBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The row drag view background color. |
GetRowDragViewForegroundColor()
Gets the row drag view foreground color.
Declaration
protected virtual Color GetRowDragViewForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The row drag view foreground color. |
GetRowDragViewIndicatorColor()
Gets the color of the row drag view indicator line that is drawn across the horizontal span of the datagrid.
Declaration
public virtual Color GetRowDragViewIndicatorColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The color of the row drag view indicator line. |
GetSelectionBackgroundColor()
Gets the background color of the selected row.
Declaration
public virtual Color GetSelectionBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The background color of the selected row. |
GetSelectionForegroundColor()
Gets the foreground color of the selected row.
Declaration
public virtual Color GetSelectionForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The foreground color of the selected row. |
GetStackedHeaderBackgroundColor(Int32)
Gets the StackedHeaderRows Background color.
Declaration
public virtual Color GetStackedHeaderBackgroundColor(int rowIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Index of StackedHeaderRow. |
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The StackedHeaderRows Background color. |
GetStackedHeaderForegroundColor(Int32)
Gets the StackedHeaderRows Foreground color.
Declaration
public virtual Color GetStackedHeaderForegroundColor(int rowIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Index of StackedHeaderRow. |
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The StackedHeaderRows Foreground color. |
GetStackedHeaderRowIndentColor(Int32)
Gets the IndentCell's background color for StackedHeaderRows.
Declaration
public virtual Color GetStackedHeaderRowIndentColor(int rowIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | The current row index going to apply style. |
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The IndentCell's background color for StackedHeaderRows. |
GetSummaryVerticalLineVisibility()
Gets the visibility of the vertical borders in summary rows when ShowSummaryInRow is false.
Declaration
public virtual bool GetSummaryVerticalLineVisibility()
Returns
| Type | Description |
|---|---|
| System.Boolean | Returns the visibility of the vertical borders in summary rows when ShowSummaryInRow is false. |
GetSwitchOffColor()
Gets or sets the color of the switches in GridSwitchColumn when it is in OFF state.
Declaration
public virtual Color GetSwitchOffColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The SfSwitchControl SwitchOff color. |
GetSwitchOnColor()
Gets or sets the color of the switches in GridSwitchColumn when it is in ON state.
Declaration
public virtual Color GetSwitchOnColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The SfSwitchControl SwitchOn color. |
GetTableSummaryBackgroundColor()
Gets the TableSummaryRow's background color.
Declaration
public virtual Color GetTableSummaryBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The TableSummaryRow's background color. |
GetTableSummaryFontAttribute()
Gets the Xamarin.Forms.FontAttributes for the TableSummaryRows .
Declaration
public virtual FontAttributes GetTableSummaryFontAttribute()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.FontAttributes | Returns the Xamarin.Forms.FontAttributes. |
GetTableSummaryForegroundColor()
Gets the TableSummaryRow's foreground color.
Declaration
public virtual Color GetTableSummaryForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The TableSummaryRow's foreground color. |
GetUnboundRowBackgroundColor()
Gets the UnboundRow's background color.
Declaration
public virtual Color GetUnboundRowBackgroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The UnboundRow's background color. |
GetUnboundRowFontAttribute()
Gets the Xamarin.Forms.FontAttributes for the UnboundRows.
Declaration
public virtual FontAttributes GetUnboundRowFontAttribute()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.FontAttributes | Returns the Xamarin.Forms.FontAttributes. |
GetUnboundRowForegroundColor()
Gets the UnboundRow's Foreground color.
Declaration
public virtual Color GetUnboundRowForegroundColor()
Returns
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The UnboundRow's Foreground color. |