Class DataGridStyle
Represents the style of the SfDataGrid.
Inheritance
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridStyle : Element, IThemeElement
Constructors
DataGridStyle()
Initializes a new instance of the DataGridStyle class.
Declaration
public DataGridStyle()
Fields
AddNewRowBackgroundProperty
Identifies the AddNewRowBackground bindable property.
Declaration
public static readonly BindableProperty AddNewRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
AddNewRowFontAttributesProperty
Identifies the AddNewRowFontAttributes bindable property.
Declaration
public static readonly BindableProperty AddNewRowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
AddNewRowFontFamilyProperty
Identifies the AddNewRowFontFamily bindable property.
Declaration
public static readonly BindableProperty AddNewRowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
AddNewRowFontSizeProperty
Identifies the AddNewRowFontSize bindable property.
Declaration
public static readonly BindableProperty AddNewRowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
AddNewRowTextColorProperty
Identifies the AddNewRowTextColor bindable property.
Declaration
public static readonly BindableProperty AddNewRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
AlternateRowBackgroundProperty
Identifies the AlternateRowBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty AlternateRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowBackgroundProperty
Identifies the CaptionSummaryRowBackground bindable property.
Declaration
public static readonly BindableProperty CaptionSummaryRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowFontAttributesProperty
Identifies the CaptionSummaryRowFontAttributes bindable property.
Declaration
public static readonly BindableProperty CaptionSummaryRowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowFontFamilyProperty
Identifies the CaptionSummaryRowFontFamily bindable property.
Declaration
public static readonly BindableProperty CaptionSummaryRowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowFontSizeProperty
Identifies the CaptionSummaryRowFontSize bindable property.
Declaration
public static readonly BindableProperty CaptionSummaryRowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowTextColorProperty
Identifies the CaptionSummaryRowTextColor bindable property.
Declaration
public static readonly BindableProperty CaptionSummaryRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ColumnDraggingIndicatorLineColorProperty
Identifies the ColumnDraggingIndicatorLineColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty ColumnDraggingIndicatorLineColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ColumnDragViewBackgroundColorProperty
Identifies the ColumnDragViewBackgroundColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty ColumnDragViewBackgroundColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ColumnDragViewTextColorProperty
Identifies the ColumnDragViewTextColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty ColumnDragViewTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ColumnResizingIndicatorColorProperty
Identifies the ResizingIndicatorColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static BindableProperty ColumnResizingIndicatorColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
CurrentCellBorderColorProperty
Identifies the CurrentCellBorderColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty CurrentCellBorderColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
CurrentCellBorderWidthProperty
Identifies the CurrentCellBorderWidth Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty CurrentCellBorderWidthProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
CurrentRowHighlightColorProperty
Identifies the CurrentRowHighlightColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty CurrentRowHighlightColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ErrorIconColorProperty
Identifies the ErrorIconColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty ErrorIconColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ErrorTipBackgroundProperty
Identifies the ErrorTipBackground Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty ErrorTipBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ErrorTipTextColorProperty
Identifies the ErrorTipTextColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty ErrorTipTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ExpanderIconColorProperty
Identifies the GroupIconColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty ExpanderIconColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FilterIconHoverBackgroundProperty
Identifies the FilterIconBackground Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty FilterIconHoverBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FilterRowBackgroundProperty
Identifies the FilterRowBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty FilterRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FilterRowFontAttributesProperty
Identifies the FilterRowFontAttributes Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty FilterRowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FilterRowFontFamilyProperty
Identifies the FilterRowFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty FilterRowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FilterRowFontSizeProperty
Identifies the FilterRowFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty FilterRowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FilterRowTextColorProperty
Identifies the FilterRowTextColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty FilterRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FreezePaneLineColorProperty
Identifies the FreezePaneLineColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty FreezePaneLineColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
FreezePaneLineStrokeThicknessProperty
Identifies the FreezePaneLineStrokeThickness bindable property.
Declaration
public static readonly BindableProperty FreezePaneLineStrokeThicknessProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Remarks
The FreezePaneLineStrokeThickness property determines the stroke thickness of the freeze pane line that visually separates frozen rows or columns from the scrollable area in the data grid.
GridLineColorProperty
Identifies the GridLineColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty GridLineColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
GridLineStrokeThicknessProperty
Identifies the GridLineStrokeThickness Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty GridLineStrokeThicknessProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
GroupSummaryRowBackgroundProperty
Identifies the GroupSummaryRowBackground bindable property.
Declaration
public static readonly BindableProperty GroupSummaryRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
GroupSummaryRowFontAttributesProperty
Declaration
public static readonly BindableProperty GroupSummaryRowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
GroupSummaryRowFontFamilyProperty
Identifies the GroupSummaryRowFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty GroupSummaryRowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
GroupSummaryRowFontSizeProperty
Identifies the GroupSummaryRowFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty GroupSummaryRowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
GroupSummaryRowTextColorProperty
Identifies the GroupSummaryRowTextColor bindable property.
Declaration
public static readonly BindableProperty GroupSummaryRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
HeaderGridLineColorProperty
Identifies the HeaderGridLineColor bindable property.
Declaration
public static readonly BindableProperty HeaderGridLineColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Remarks
The HeaderGridLineColor The property specifies the grid line color of the column header and stacked header cells.
HeaderGridLineStrokeThicknessProperty
Identifies the HeaderGridLineStrokeThickness bindable property.
Declaration
public static readonly BindableProperty HeaderGridLineStrokeThicknessProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Remarks
The HeaderGridLineStrokeThickness property determines the stroke thickness of the column header and stacked header cells.
HeaderRowBackgroundProperty
Identifies the HeaderRowBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
HeaderRowFontAttributesProperty
Identifies the HeaderFontAttributes Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
HeaderRowFontFamilyProperty
Identifies the HeaderFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
HeaderRowFontSizeProperty
Identifies the HeaderFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
HeaderRowTextColorProperty
Identifies the HeaderRowTextColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
LoadMoreBackgroundProperty
Identifies the
Declaration
public static readonly BindableProperty LoadMoreBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
LoadMoreButtonBackgroundProperty
Identifies the
Declaration
public static readonly BindableProperty LoadMoreButtonBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
LoadMoreButtonTextColorProperty
Identifies the
Declaration
public static readonly BindableProperty LoadMoreButtonTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
LoadMoreIndicatorColorProperty
Identifies the
Declaration
public static readonly BindableProperty LoadMoreIndicatorColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowBackgroundProperty
Identifies the RowBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty RowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowDraggingIndicatorLineColorProperty
Identifies the RowDraggingIndicatorLineColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty RowDraggingIndicatorLineColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowDragViewBackgroundColorProperty
Identifies the RowDragViewBackgroundColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty RowDragViewBackgroundColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowDragViewTextColorProperty
Identifies the RowDragViewTextColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty RowDragViewTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowFontAttributesProperty
Identifies the RowFontAttributes Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty RowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowFontFamilyProperty
Identifies the RowFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty RowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowFontSizeProperty
Identifies the RowFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty RowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowHoveredBackgroundProperty
Identifies the RowHoveredBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty RowHoveredBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RowTextColorProperty
Identifies the RowTextColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty RowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SearchHighlightTextBackgroundProperty
Identifies the SearchHighlightTextBackground Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty SearchHighlightTextBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SearchHighlightTextColorProperty
Identifies the SearchHighlightTextColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty SearchHighlightTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SearchTextBackgroundProperty
Identifies the SearchTextBackground Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty SearchTextBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SearchTextColorProperty
Identifies the SearchTextColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty SearchTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SelectedRowTextColorProperty
Identifies the SelectedRowTextColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty SelectedRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SelectionBackgroundProperty
Identifies the SelectionBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty SelectionBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SortIconColorProperty
Identifies the SortIconColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static BindableProperty SortIconColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
StackedHeaderRowBackgroundProperty
Identifies the HeaderRowBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
StackedHeaderRowFontAttributesProperty
Identifies the HeaderFontAttributes Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
StackedHeaderRowFontFamilyProperty
Identifies the HeaderFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
StackedHeaderRowFontSizeProperty
Identifies the HeaderFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
StackedHeaderRowTextColorProperty
Identifies the HeaderRowTextColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TableSummaryRowBackgroundProperty
Identifies the TableSummaryRowBackground bindable property.
Declaration
public static readonly BindableProperty TableSummaryRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TableSummaryRowFontAttributesProperty
to do
Declaration
public static readonly BindableProperty TableSummaryRowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TableSummaryRowFontFamilyProperty
Identifies the TableSummaryRowFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty TableSummaryRowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TableSummaryRowFontSizeProperty
Identifies the TableSummaryRowFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty TableSummaryRowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TableSummaryRowTextColorProperty
Identifies the TableSummaryRowTextColor bindable property.
Declaration
public static readonly BindableProperty TableSummaryRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ToolTipBackgroundProperty
Identifies the ToolTipBackground Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty ToolTipBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
ToolTipTextColorProperty
Identifies the ToolTipTextColor Microsoft.Maui.Controls.BindableProperty
Declaration
public static readonly BindableProperty ToolTipTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
UnboundRowBackgroundProperty
Identifies the UnboundRowBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty UnboundRowBackgroundProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
UnboundRowFontAttributesProperty
Identifies the UnboundRowFontAttributes Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty UnboundRowFontAttributesProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
UnboundRowFontFamilyProperty
Identifies the UnboundRowFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty UnboundRowFontFamilyProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
UnboundRowFontSizeProperty
Identifies the UnboundRowFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty UnboundRowFontSizeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
UnboundRowTextColorProperty
Identifies the UnboundRowTextColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty UnboundRowTextColorProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
AddNewRowBackground
Gets or sets the background brush for the Add New Row.
Declaration
public Brush AddNewRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
AddNewRowFontAttributes
Gets or sets the font attributes (such as bold or italic) for the Add New Row text.
Declaration
public FontAttributes AddNewRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
AddNewRowFontFamily
Gets or sets the font family for the Add New Row text.
Declaration
public string AddNewRowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
AddNewRowFontSize
Gets or sets the font size for the Add New Row text.
Declaration
public double AddNewRowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
AddNewRowTextColor
Gets or sets the text color for the Add New Row.
Declaration
public Color AddNewRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
AlternateRowBackground
Gets or sets the background of the alternate rows.
Declaration
public Brush AlternateRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
See Also
CaptionSummaryRowBackground
Declaration
public Brush CaptionSummaryRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
CaptionSummaryRowFontAttributes
Declaration
public FontAttributes CaptionSummaryRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
CaptionSummaryRowFontFamily
Declaration
public string CaptionSummaryRowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
CaptionSummaryRowFontSize
Declaration
public double CaptionSummaryRowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
CaptionSummaryRowTextColor
Declaration
public Color CaptionSummaryRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ColumnDraggingIndicatorLineColor
Gets or sets the Microsoft.Maui.Graphics.Color which will change the color of column dragging indicator in a SfDataGrid control. This is a bindable property.
Declaration
public Color ColumnDraggingIndicatorLineColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ColumnDragViewBackgroundColor
Declaration
public Color ColumnDragViewBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ColumnDragViewTextColor
Declaration
public Color ColumnDragViewTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ColumnResizingIndicatorColor
Gets or sets the color for the resizing indicator.
Declaration
public Color ColumnResizingIndicatorColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
CurrentCellBorderColor
Gets or sets the color for current cell border.
Declaration
public Color CurrentCellBorderColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
CurrentCellBorderWidth
Gets or sets the width for current cell border.
Declaration
public double CurrentCellBorderWidth { get; set; }
Property Value
| Type |
|---|
| System.Double |
CurrentRowHighlightColor
Gets or sets the color for current row border.
Declaration
public Color CurrentRowHighlightColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ErrorIconColor
Gets or sets the Error Icon Color
Declaration
public Color ErrorIconColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ErrorTipBackground
/// Gets or sets the error tip background
Declaration
public Brush ErrorTipBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
ErrorTipTextColor
Gets or sets the error tip text color
Declaration
public Color ErrorTipTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ExpanderIconColor
Gets or sets the master-details view expander icon color.
Declaration
public Color ExpanderIconColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
FilterIconHoverBackground
Gets or sets the Microsoft.Maui.Graphics.Color which will fill the background color of content in the DataGridToolTipView.
Declaration
public Color FilterIconHoverBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
FilterRowBackground
Gets or sets the background of the filter row.
Declaration
public Brush FilterRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
FilterRowFontAttributes
Gets or sets the font attributes of the filter row.
Declaration
public FontAttributes FilterRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
FilterRowFontFamily
Gets or sets the font family of the filter row.
Declaration
public string FilterRowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
FilterRowFontSize
Gets or sets the font size of the filter row.
Declaration
public double FilterRowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
FilterRowTextColor
Gets or sets the text color of the filter row.
Declaration
public Color FilterRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
FreezePaneLineColor
Declaration
public Color FreezePaneLineColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
Remarks
This is applicable for both the frozen column and row.
FreezePaneLineStrokeThickness
Gets or sets the stroke thickness of the freeze pane line in the data grid.
Declaration
public int FreezePaneLineStrokeThickness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | It accepts System.Int32 values, and the default thickness is 1. |
Remarks
This property allows you to customize the appearance of the freeze pane line by adjusting its stroke thickness. The freeze pane line visually separates frozen rows or columns from the scrollable area in the grid.
Examples
Here is an example of how to set the FreezePaneLineStrokeThickness property.
[XAML///
<local:SfDataGrid>
<local:SfDataGrid.DefaultStyle>
<local:DataGridStyle FreezePaneLineStrokeThickness="2" />
</local:SfDataGrid.DefaultStyle>
</local:SfDataGrid>
var dataGrid = new SfDataGrid();
DataGridStyle style = new DataGridStyle() { FreezePaneLineStrokeThickness = 2 };
dataGrid.DefaultStyle = style;
GridLineColor
Gets or sets the color for the grid lines.
Declaration
public Color GridLineColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
GridLineStrokeThickness
Gets or sets the stroke thickness of the grid lines.
Declaration
public float GridLineStrokeThickness { get; set; }
Property Value
| Type |
|---|
| System.Single |
GroupSummaryRowBackground
Declaration
public Brush GroupSummaryRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
GroupSummaryRowFontAttributes
Declaration
public FontAttributes GroupSummaryRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
GroupSummaryRowFontFamily
Declaration
public string GroupSummaryRowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
GroupSummaryRowFontSize
Declaration
public double GroupSummaryRowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
GroupSummaryRowTextColor
Declaration
public Color GroupSummaryRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
HeaderGridLineColor
Gets or sets the color of the grid lines in the column header and stacked header cells.
Declaration
public Color HeaderGridLineColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Maui.Graphics.Color | It accepts Microsoft.Maui.Graphics.Color values, the default color is Color.FromRgba("#CAC4D0"). |
Remarks
This property allows you to set the color of the grid lines in the column header and stacked header cells for better visual distinction.
Examples
Here is an example of how to set the HeaderGridLineColor property.
<local:SfDataGrid>
<local:SfDataGrid.DefaultStyle>
<local:DataGridStyle HeaderGridLineColor="Gray" />
</local:SfDataGrid.DefaultStyle>
</local:SfDataGrid>
HeaderGridLineStrokeThickness
Gets or sets the stroke thickness of the grid line in the column header and stacked header cells.
Declaration
public float HeaderGridLineStrokeThickness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | It accepts System.Single values, and the default thickness is 1.0. |
Remarks
This property allows you to customize the appearance of the header grid line by adjusting its stroke thickness in the column header and stacked header cells.
Examples
Here is an example of how to set the HeaderGridLineStrokeThickness property.
<local:SfDataGrid>
<local:SfDataGrid.DefaultStyle>
<local:DataGridStyle HeaderGridLineStrokeThickness="2.0" />
</local:SfDataGrid.DefaultStyle>
</local:SfDataGrid>
var dataGrid = new SfDataGrid();
DataGridStyle style = new DataGridStyle() { HeaderGridLineStrokeThickness = 2.0f };
dataGrid.DefaultStyle = style;
HeaderRowBackground
Gets or sets the background for the header row.
Declaration
public Brush HeaderRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
HeaderRowFontAttributes
Gets or sets the font attributes of the header row.
Declaration
public FontAttributes HeaderRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
HeaderRowFontFamily
Gets or sets the font family of the header row.
Declaration
public string HeaderRowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
HeaderRowFontSize
Gets or sets the font size of the header row.
Declaration
public double HeaderRowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
HeaderRowTextColor
Gets or sets the text color of the header row.
Declaration
public Color HeaderRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
LoadMoreBackground
Gets or sets the Microsoft.Maui.Controls.Brush which will fill the background of DataGridLoadMoreView.
Declaration
public Brush LoadMoreBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
LoadMoreButtonBackground
Gets or sets the Microsoft.Maui.Controls.Brush which will fill the background of button in the DataGridLoadMoreView.
Declaration
public Brush LoadMoreButtonBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
LoadMoreButtonTextColor
Gets or sets the Microsoft.Maui.Graphics.Color which will be used to apply text color of load more text in the DataGridLoadMoreView.
Declaration
public Color LoadMoreButtonTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
LoadMoreIndicatorColor
Gets or sets the Microsoft.Maui.Graphics.Color which will fill the background color of indicator in the DataGridLoadMoreView.
Declaration
public Color LoadMoreIndicatorColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
RowBackground
Gets or sets the background of the data rows.
Declaration
public Brush RowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
RowDraggingIndicatorLineColor
Gets or sets the Microsoft.Maui.Graphics.Color which will change the color of row dragging indicator in a SfDataGrid control. This is a bindable property.
Declaration
public Color RowDraggingIndicatorLineColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
RowDragViewBackgroundColor
Declaration
public Color RowDragViewBackgroundColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
RowDragViewTextColor
Declaration
public Color RowDragViewTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
RowFontAttributes
Gets or sets the font attributes of the data rows.
Declaration
public FontAttributes RowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
RowFontFamily
Gets or sets the font family of the data rows.
Declaration
public string RowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
RowFontSize
Gets or sets the font size of the data rows.
Declaration
public double RowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
RowHoveredBackground
Gets or sets the background color for data rows when the mouse pointer hovers over them.
Declaration
public Color RowHoveredBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Maui.Graphics.Color | The background color for the hovered row. The default value is a brush with color #141C1B1F. |
Remarks
This property provides visual feedback when users hover over rows, improving user experience on desktop platforms. The hover effect is primarily supported on Windows and macOS platforms.
Examples
Here is an example of how to set the RowHoveredBackground property.
<local:SfDataGrid>
<local:SfDataGrid.DefaultStyle>
<local:DataGridStyle RowHoveredBackground="#20000000" />
</local:SfDataGrid.DefaultStyle>
</local:SfDataGrid>
RowTextColor
Gets or sets the text color of the data row.
Declaration
public Color RowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
SearchHighlightTextBackground
Gets or sets the Microsoft.Maui.Graphics.Color which will fill the test background of the highlighted search in a SfDataGrid control. This is a bindable property.
Declaration
public Color SearchHighlightTextBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
SearchHighlightTextColor
Gets or sets the Microsoft.Maui.Graphics.Color which will fill the test of the highlighted search in a SfDataGrid control. This is a bindable property.
Declaration
public Color SearchHighlightTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
SearchTextBackground
Gets or sets the Microsoft.Maui.Graphics.Color which will fill the test background of the search in a SfDataGrid control. This is a bindable property.
Declaration
public Color SearchTextBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
SearchTextColor
Gets or sets the Microsoft.Maui.Graphics.Color which will fill the test of the search in a SfDataGrid control. This is a bindable property.
Declaration
public Color SearchTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
SelectedRowTextColor
Gets or sets the text color of the selected rows.
Declaration
public Color SelectedRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
SelectionBackground
Gets or sets the background of the selected rows.
Declaration
public Brush SelectionBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
SortIconColor
Gets the color for the sort icon.
Declaration
public Color SortIconColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
StackedHeaderRowBackground
Gets or sets the row background of the stacked header cell.
Declaration
public Brush StackedHeaderRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
StackedHeaderRowFontAttributes
Gets or sets the font attributes of the stacked header cell.
Declaration
public FontAttributes StackedHeaderRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
StackedHeaderRowFontFamily
Gets or sets the font family of the stacked header cell.
Declaration
public string StackedHeaderRowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
StackedHeaderRowFontSize
Gets or sets the font size of the stacked header cell.
Declaration
public double StackedHeaderRowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
StackedHeaderRowTextColor
Gets or sets the text color of the stacked header cell.
Declaration
public Color StackedHeaderRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
TableSummaryRowBackground
Gets or sets the background of the table summary row.
Declaration
public Brush TableSummaryRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
TableSummaryRowFontAttributes
Gets or sets the font attributes of the table summary row.
Declaration
public FontAttributes TableSummaryRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
TableSummaryRowFontFamily
Gets or sets the font family of the table summary row.
Declaration
public string TableSummaryRowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
TableSummaryRowFontSize
Gets or sets the font size of the table summary row.
Declaration
public double TableSummaryRowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
TableSummaryRowTextColor
Gets or sets the text color of the table summary row.
Declaration
public Color TableSummaryRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ToolTipBackground
Gets or sets the Microsoft.Maui.Graphics.Color which will fill the background color of content in the DataGridToolTipView.
Declaration
public Color ToolTipBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
ToolTipTextColor
Gets or sets the Microsoft.Maui.Graphics.Color which will fill the text color of label in the DataGridToolTipView.
Declaration
public Color ToolTipTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
UnboundRowBackground
Gets or sets the background of the unbound rows.
Declaration
public Brush UnboundRowBackground { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.Brush |
UnboundRowFontAttributes
Gets or sets the font attributes of the unbound rows.
Declaration
public FontAttributes UnboundRowFontAttributes { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Controls.FontAttributes |
UnboundRowFontFamily
Gets or sets the font family of the unbound rows.
Declaration
public string UnboundRowFontFamily { get; set; }
Property Value
| Type |
|---|
| System.String |
UnboundRowFontSize
Gets or sets the font size of the unbound rows.
Declaration
public double UnboundRowFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
UnboundRowTextColor
Gets or sets the text color of the unbound row.
Declaration
public Color UnboundRowTextColor { get; set; }
Property Value
| Type |
|---|
| Microsoft.Maui.Graphics.Color |
Methods
OnCommonThemeChanged(String, String)
Declaration
public void OnCommonThemeChanged(string oldTheme, string newTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | oldTheme | |
| System.String | newTheme |
OnControlThemeChanged(String, String)
Declaration
public void OnControlThemeChanged(string oldTheme, string newTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | oldTheme | |
| System.String | newTheme |