menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataGridCell - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataGridCell

    Represents a record cell in a SfDataGrid control.

    Inheritance
    System.Object
    SfView
    SfContentView
    Syncfusion.Maui.Core.Internals.DataGridCellBase
    DataGridCell
    DataGridCaptionSummaryCell
    DataGridGroupSummaryCell
    DataGridHeaderCell
    DataGridIndentCell
    DataGridRowHeaderCell
    DataGridStackedHeaderCell
    DataGridTableSummaryCell
    DataGridUnboundRowCell
    DetailsViewContentPresenter
    DetailsViewExpanderCell
    DetailsViewIndentCell
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    System.IDisposable
    Inherited Members
    SfContentView.Content
    SfContentView.ContentProperty
    SfContentView.OnContentChanged(Object, Object)
    SfView.ArrangeContent(Rect)
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(Double, Double)
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureContent(Double, Double)
    SfView.MeasureOverride(Double, Double)
    SfView.OnBindingContextChanged()
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class DataGridCell : DataGridCellBase, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, IDisposable, ITapGestureListener, IDoubleTapGestureListener, ILongPressGestureListener, ITextElement, IRightTapGestureListener, IGestureListener, ITouchListener

    Constructors

    DataGridCell()

    Initializes a new instance of the DataGridCell class.

    Declaration
    public DataGridCell()

    Fields

    BackgroundProperty

    Identifies the Background Microsoft.Maui.Controls.BindableProperty.

    Declaration
    public static readonly BindableProperty BackgroundProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    CellValueProperty

    Identifies the CellValue Microsoft.Maui.Controls.BindableProperty.

    Declaration
    public static readonly BindableProperty CellValueProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty
    Remarks

    This Microsoft.Maui.Controls.BindableProperty is read-only.

    FontAttributesProperty

    Identifies the FontAttributes Microsoft.Maui.Controls.BindableProperty.

    Declaration
    public static readonly BindableProperty FontAttributesProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    FontFamilyProperty

    Identifies the FontFamily Microsoft.Maui.Controls.BindableProperty.

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    FontSizeProperty

    Identifies the FontSize Microsoft.Maui.Controls.BindableProperty.

    Declaration
    public static readonly BindableProperty FontSizeProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    PaddingProperty

    Identifes the CellPadding Microsoft.Maui.Controls.BindableProperty

    Declaration
    public static readonly BindableProperty PaddingProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    TextAlignmentProperty

    Identifies the TextAlginment Microsoft.Maui.Controls.BindableProperty.

    Declaration
    public static readonly BindableProperty TextAlignmentProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    TextColorProperty

    Identifies the TextColor Microsoft.Maui.Controls.BindableProperty.

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    Background

    Gets or sets the background.

    Declaration
    public Brush Background { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.Brush

    CellValue

    Gets the cell value of the DataGridCell.

    Declaration
    public object CellValue { get; }
    Property Value
    Type Description
    System.Object

    An object that represents the cell value of the DataGridCell.

    ColumnIndex

    Gets the column Index of the DataGridCell.

    Declaration
    public int ColumnIndex { get; }
    Property Value
    Type Description
    System.Int32

    A value that determines the column Index of the DataGridCell.

    DataColumn

    Gets the data column associated with the grid cell which contains the details of the column.

    Declaration
    public DataColumnBase DataColumn { get; }
    Property Value
    Type Description
    Syncfusion.Maui.DataGrid.DataColumnBase

    An object that represents the DataGridColumn associated with the DataGridCell, which contains the details of the column.

    FontAttributes

    Gets or sets the font attributes.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.FontAttributes

    FontAutoScalingEnabled

    Declaration
    public bool FontAutoScalingEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    FontFamily

    Gets or sets the font family.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type
    System.String

    FontSize

    Gets or sets the size of font.

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type
    System.Double

    Padding

    Gets or sets the inner padding of the cell.

    Declaration
    public Thickness Padding { get; set; }
    Property Value
    Type
    Microsoft.Maui.Thickness

    RowIndex

    Gets the row Index of the DataGridCell.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type Description
    System.Int32

    A value that determines the row Index of the DataGridCell.

    TextAlignment

    Gets or sets the TextAlignment.

    Declaration
    public Nullable<TextAlignment> TextAlignment { get; set; }
    Property Value
    Type
    System.Nullable<Microsoft.Maui.TextAlignment>

    TextColor

    Gets or sets the color of the text.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color

    Methods

    Dispose()

    Releases the resources used by the component.

    Declaration
    public void Dispose()

    OnDraw(ICanvas, RectF)

    Method to draw the cell

    Declaration
    protected override void OnDraw(ICanvas canvas, RectF dirtyRect)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.ICanvas canvas

    The canvas for draw

    Microsoft.Maui.Graphics.RectF dirtyRect

    Rectagle for draw

    Overrides
    SfView.OnDraw(ICanvas, RectF)

    OnHandlerChanged()

    Called when the handler is changed in DataGridCell

    Declaration
    protected override void OnHandlerChanged()
    Overrides
    SfView.OnHandlerChanged()

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved