menu

MAUI

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

    Show / Hide Table of Contents

    Class DataGridTextColumn

    Represents a SfDataGrid column that hosts textual Content in its cells.

    Inheritance
    System.Object
    DataGridColumn
    DataGridTextColumn
    DataGridUnboundColumn
    Implements
    System.IDisposable
    Inherited Members
    DataGridColumn.ActualWidth
    DataGridColumn.ActualWidthProperty
    DataGridColumn.AllowEditing
    DataGridColumn.AllowEditingProperty
    DataGridColumn.AllowFocus
    DataGridColumn.AllowFocusProperty
    DataGridColumn.AllowSorting
    DataGridColumn.AllowSortingProperty
    DataGridColumn.CanEditCell()
    DataGridColumn.CellPadding
    DataGridColumn.CellPaddingProperty
    DataGridColumn.CellStyle
    DataGridColumn.CellStyleProperty
    DataGridColumn.CellTextAlignment
    DataGridColumn.CellTextAlignmentProperty
    DataGridColumn.CellType
    DataGridColumn.ColumnWidthMode
    DataGridColumn.ColumnWidthModeProperty
    DataGridColumn.CultureInfo
    DataGridColumn.CultureInfoProperty
    DataGridColumn.DisplayBinding
    DataGridColumn.Dispose()
    DataGridColumn.Dispose(Boolean)
    DataGridColumn.Format
    DataGridColumn.FormatProperty
    DataGridColumn.GetFormattedValue(Object)
    DataGridColumn.GroupMode
    DataGridColumn.GroupModeProperty
    DataGridColumn.HeaderLineBreakMode
    DataGridColumn.HeaderLineBreakModeProperty
    DataGridColumn.HeaderPadding
    DataGridColumn.HeaderPaddingProperty
    DataGridColumn.HeaderStyle
    DataGridColumn.HeaderStyleProperty
    DataGridColumn.HeaderTemplate
    DataGridColumn.HeaderTemplateProperty
    DataGridColumn.HeaderText
    DataGridColumn.HeaderTextAlignment
    DataGridColumn.HeaderTextAlignmentProperty
    DataGridColumn.HeaderTextProperty
    DataGridColumn.LineBreakMode
    DataGridColumn.LineBreakModeProperty
    DataGridColumn.LoadUIView
    DataGridColumn.MappingName
    DataGridColumn.MappingNameProperty
    DataGridColumn.MaximumWidth
    DataGridColumn.MaximumWidthProperty
    DataGridColumn.MinimumWidth
    DataGridColumn.MinimumWidthProperty
    DataGridColumn.SetConverterForDisplayBinding()
    DataGridColumn.SortMode
    DataGridColumn.SortModeProperty
    DataGridColumn.UseBindingValue
    DataGridColumn.UseBindingValueProperty
    DataGridColumn.ValueBinding
    DataGridColumn.Visible
    DataGridColumn.VisibleProperty
    DataGridColumn.Width
    DataGridColumn.WidthProperty
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class DataGridTextColumn : DataGridColumn, IDisposable
    Remarks

    Use DataGridTextColumn to display columns of data as text. To create a column, add it to the Columns collection and to populate the data to the column set the MappingName to the property in the data source. dataGrid.Columns.Add(new DataGridTextColumn() { MappingName = "OrderID" });.

    The data can also be populated to the column by using the DataGridColumn.DisplayBinding property. The Binding property is applied to the Microsoft.Maui.Controls.Label view created in the column. The Microsoft.Maui.Controls.BindableObject.BindingContext for the view in each cell is the data item for the row the cell is present. Therefore, to set up the binding you only have to set the Microsoft.Maui.Controls.Binding.Path. Optionally, you can specify a Microsoft.Maui.Controls.Binding.Converter if you want to convert the data.

    Constructors

    DataGridTextColumn()

    Initializes a new instance of the DataGridTextColumn class.

    Declaration
    public DataGridTextColumn()

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved