Class SerializableDataGridColumn
Represents a class that is used to serialize and deserialize DataGridColumn property settings.
Inheritance
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
[DataContract(Name = "DataGridColumn")]
[KnownType("KnownTypes")]
public class SerializableDataGridColumn
Constructors
SerializableDataGridColumn()
Declaration
public SerializableDataGridColumn()
Fields
DataGrid
Gets the reference of the SfDataGrid control.
Declaration
public static SfDataGrid? DataGrid
Field Value
| Type |
|---|
| SfDataGrid |
Properties
ActualWidth
Gets or sets the actual display width of the column when auto fitted.
Declaration
[DataMember(EmitDefaultValue = false)]
public double ActualWidth { get; set; }
Property Value
| Type |
|---|
| double |
AllowEditing
Gets or sets a value that indicates whether the editing is enabled in SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool? AllowEditing { get; set; }
Property Value
| Type |
|---|
| bool? |
AllowFocus
Gets or sets a value that indicates whether the SerializableDataGridColumn receives focus or not.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool AllowFocus { get; set; }
Property Value
| Type |
|---|
| bool |
AllowSorting
Gets or sets a value that indicates whether the user can sort the data by clicking on its header cell of SerializableDataGridColumn .
Declaration
[DataMember(EmitDefaultValue = false)]
public bool? AllowSorting { get; set; }
Property Value
| Type |
|---|
| bool? |
CellPadding
Gets or sets the space between the edge of cell and its content with in the specified SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public Thickness? CellPadding { get; set; }
Property Value
| Type |
|---|
| Thickness |
CellTextAlignment
Gets or sets the horizontal alignment property for the text.
Declaration
[DataMember(EmitDefaultValue = false)]
public TextAlignment? CellTextAlignment { get; set; }
Property Value
| Type |
|---|
| TextAlignment |
ColumnWidthMode
Gets or sets the value that indicates how the column width is determined in SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public ColumnWidthMode ColumnWidthMode { get; set; }
Property Value
| Type |
|---|
| ColumnWidthMode |
CultureInfo
Gets or sets the culture used for formatting the Content of record cells in the SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public CultureInfo? CultureInfo { get; set; }
Property Value
| Type |
|---|
| CultureInfo |
Format
Gets or sets the format of SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public string? Format { get; set; }
Property Value
| Type |
|---|
| string |
HeaderLineBreakMode
Gets or sets the LineBreak modes for the column header in SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public LineBreakMode? HeaderLineBreakMode { get; set; }
Property Value
| Type |
|---|
| LineBreakMode |
HeaderPadding
Gets or sets the the inner padding of the column header in the specified SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public Thickness? HeaderPadding { get; set; }
Property Value
| Type |
|---|
| Thickness |
HeaderText
Gets or sets the text that is displayed on the header cell of SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public string? HeaderText { get; set; }
Property Value
| Type |
|---|
| string |
HeaderTextAlignment
Gets or sets the alignment for the column header.
Declaration
[DataMember(EmitDefaultValue = false)]
public TextAlignment? HeaderTextAlignment { get; set; }
Property Value
| Type |
|---|
| TextAlignment |
LineBreakMode
Gets or sets the LineBreak modes for the SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public LineBreakMode? LineBreakMode { get; set; }
Property Value
| Type |
|---|
| LineBreakMode |
LoadUIView
Gets or sets a value indicating whether to load the UI element into the DataGridCell or draw the cell value on Android, iOS and MAC in SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool LoadUIView { get; set; }
Property Value
| Type |
|---|
| bool |
MappingName
Gets or sets the name to map the data member in the underlying data object to SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public string? MappingName { get; set; }
Property Value
| Type |
|---|
| string |
MaximumWidth
Gets or sets the maximum width constraint of the SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public double MaximumWidth { get; set; }
Property Value
| Type |
|---|
| double |
MinimumWidth
Gets or sets the minimum width constraint of the SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public double MinimumWidth { get; set; }
Property Value
| Type |
|---|
| double |
UseBindingValue
Gets or sets a value that indicates whether the binding gets property value from column wrapper instead of reflecting value from the item properties.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool UseBindingValue { get; set; }
Property Value
| Type |
|---|
| bool |
VerticalTextAlignment
Gets or sets the vertical text alignment of the column in SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public TextAlignment?? VerticalTextAlignment { get; set; }
Property Value
| Type |
|---|
| TextAlignment? |
Visible
Gets or sets a value that indicates whether SerializableDataGridColumn should be visible in the view.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool Visible { get; set; }
Property Value
| Type |
|---|
| bool |
Width
Gets or sets the width of SerializableDataGridColumn.
Declaration
[DataMember(EmitDefaultValue = false)]
public double Width { get; set; }
Property Value
| Type |
|---|
| double |
Methods
KnownTypes()
Gets the known column types during serialization and deserialization operation.
Declaration
public static Type[] KnownTypes()
Returns
| Type | Description |
|---|---|
| Type[] | Returns the corresponding column type. |