Class DataGridStyle
Inheritance
System.Object
DataGridStyle
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridStyle : Element, IThemeElement
Constructors
DataGridStyle()
Declaration
Fields
AddNewRowBackgroundProperty
Declaration
public static readonly BindableProperty AddNewRowBackgroundProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
AddNewRowFontAttributesProperty
Declaration
public static readonly BindableProperty AddNewRowFontAttributesProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
AddNewRowFontFamilyProperty
Declaration
public static readonly BindableProperty AddNewRowFontFamilyProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
AddNewRowFontSizeProperty
Declaration
public static readonly BindableProperty AddNewRowFontSizeProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
AddNewRowTextColorProperty
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
Declaration
public static readonly BindableProperty CaptionSummaryRowBackgroundProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowFontAttributesProperty
Declaration
public static readonly BindableProperty CaptionSummaryRowFontAttributesProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowFontFamilyProperty
Declaration
public static readonly BindableProperty CaptionSummaryRowFontFamilyProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowFontSizeProperty
Declaration
public static readonly BindableProperty CaptionSummaryRowFontSizeProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
CaptionSummaryRowTextColorProperty
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 |
ExpanderIconColorProperty
Identifies the GroupIconColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty ExpanderIconColorProperty
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 |
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
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
Declaration
public static readonly BindableProperty GroupSummaryRowTextColorProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Declaration
public static readonly BindableProperty HeaderGridLineColorProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Declaration
public static readonly BindableProperty HeaderGridLineStrokeThicknessProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderRowBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowBackgroundProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderFontAttributes Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowFontAttributesProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowFontFamilyProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowFontSizeProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderRowTextColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HeaderRowTextColorProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
LoadMoreBackgroundProperty
Identifies the bindable property.
Declaration
public static readonly BindableProperty LoadMoreBackgroundProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the bindable property.
Declaration
public static readonly BindableProperty LoadMoreButtonBackgroundProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
LoadMoreButtonTextColorProperty
Identifies the bindable property.
Declaration
public static readonly BindableProperty LoadMoreButtonTextColorProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
LoadMoreIndicatorColorProperty
Identifies the bindable property.
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.
The RowHoveredBackground property specifies the background color for data rows when the mouse pointer hovers over them.
This effect is primarily for desktop platforms (Windows and macOS) but has limited support on mobile platforms with mouse peripherals.
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 |
Identifies the HeaderRowBackground Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowBackgroundProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderFontAttributes Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowFontAttributesProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderFontFamily Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowFontFamilyProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderFontSize Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowFontSizeProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
Identifies the HeaderRowTextColor Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty StackedHeaderRowTextColorProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
TableSummaryRowBackgroundProperty
Declaration
public static readonly BindableProperty TableSummaryRowBackgroundProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
TableSummaryRowFontAttributesProperty
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
Declaration
public static readonly BindableProperty TableSummaryRowTextColorProperty
Field Value
Type |
Microsoft.Maui.Controls.BindableProperty |
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
AddNewRowFontSize
Gets or sets the font size for the Add New Row text.
Declaration
public double AddNewRowFontSize { get; set; }
Property Value
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
CaptionSummaryRowFontSize
Declaration
public double CaptionSummaryRowFontSize { get; set; }
Property Value
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
CurrentRowHighlightColor
Gets or sets the color for current row border.
Declaration
public Color CurrentRowHighlightColor { 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 |
FreezePaneLineColor
Declaration
public Color FreezePaneLineColor { get; set; }
Property Value
Type |
Microsoft.Maui.Graphics.Color |
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
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
GroupSummaryRowFontSize
Declaration
public double GroupSummaryRowFontSize { get; set; }
Property Value
GroupSummaryRowTextColor
Declaration
public Color GroupSummaryRowTextColor { get; set; }
Property Value
Type |
Microsoft.Maui.Graphics.Color |
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").
|
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>
var dataGrid = new SfDataGrid();
DataGridStyle style = new DataGridStyle() { HeaderGridLineColor = Colors.Gray };
dataGrid.DefaultStyle = style;
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.
|
Here is an example of how to set the HeaderGridLineStrokeThickness property.
XAML
<local:SfDataGrid>
<local:SfDataGrid.DefaultStyle>
<local:DataGridStyle HeaderGridLineStrokeThickness="2.0" />
</local:SfDataGrid.DefaultStyle>
</local:SfDataGrid>
C#
var dataGrid = new SfDataGrid();
DataGridStyle style = new DataGridStyle() { HeaderGridLineStrokeThickness = 2.0f };
dataGrid.DefaultStyle = style;
Gets or sets the background for the header row.
Declaration
public Brush HeaderRowBackground { get; set; }
Property Value
Type |
Microsoft.Maui.Controls.Brush |
Gets or sets the font attributes of the header row.
Declaration
public FontAttributes HeaderRowFontAttributes { get; set; }
Property Value
Type |
Microsoft.Maui.Controls.FontAttributes |
Gets or sets the font family of the header row.
Declaration
public string HeaderRowFontFamily { get; set; }
Property Value
Gets or sets the font size of the header row.
Declaration
public double HeaderRowFontSize { get; set; }
Property Value
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 |
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
RowFontSize
Gets or sets the font size of the data rows.
Declaration
public double RowFontSize { get; set; }
Property Value
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.
|
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>
var dataGrid = new SfDataGrid();
DataGridStyle style = new DataGridStyle() { RowHoveredBackground = new SolidColorBrush(Color.FromArgb("#20000000")) };
dataGrid.DefaultStyle = style;
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 |
Gets or sets the row background of the stacked header cell.
Declaration
public Brush StackedHeaderRowBackground { get; set; }
Property Value
Type |
Microsoft.Maui.Controls.Brush |
Gets or sets the font attributes of the stacked header cell.
Declaration
public FontAttributes StackedHeaderRowFontAttributes { get; set; }
Property Value
Type |
Microsoft.Maui.Controls.FontAttributes |
Gets or sets the font family of the stacked header cell.
Declaration
public string StackedHeaderRowFontFamily { get; set; }
Property Value
Gets or sets the font size of the stacked header cell.
Declaration
public double StackedHeaderRowFontSize { get; set; }
Property Value
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
TableSummaryRowFontSize
Gets or sets the font size of the table summary row.
Declaration
public double TableSummaryRowFontSize { get; set; }
Property Value
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 |
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
UnboundRowFontSize
Gets or sets the font size of the unbound rows.
Declaration
public double UnboundRowFontSize { get; set; }
Property Value
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 |
|