Class DataGridUnboundColumn
Represents the column which is used to display additional information in columns which are not bound with data object.
Implements
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridUnboundColumn : DataGridTextColumn, IDisposable
Remarks
It is mandatory to specify the GridColumn.MappingName
for GridUnboundColumn
with some name to identify the column. It is not necessary to define name of field in the data object.
Constructors
DataGridUnboundColumn()
Initializes a new instance of the DataGridUnboundColumn class.
Declaration
public DataGridUnboundColumn()
Fields
CaseSensitiveProperty
Identifies the CaseSensitive Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty CaseSensitiveProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
This Microsoft.Maui.Controls.BindableProperty is read-only.
ExpressionProperty
Gets or sets an expression which used to calculate values for GridUnboundColumn. The user can populate the data for unbound column by setting Expression or Format property. Identifies the Expression Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty ExpressionProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
This Microsoft.Maui.Controls.BindableProperty is read-only.
Properties
CaseSensitive
Gets or sets a value indicating whether the casing of Expression evaluation for computing the display value of the DataGridUnboundColumn.
Declaration
public bool CaseSensitive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if the case sensitive is enabled, otherwise false. The default value is true. |
Remarks
The user can specify the arithmetic or logic expression using Expression property to compute the display value for the DataGridUnboundColumn. By default, the expression is evaluated with casing. The user can disable the casing while evaluating the Expression by setting CaseSensitive property to false.
Examples
GridUnboundColumn DiscountColumn = new GridUnboundColumn()
{
MappingName = "DiscountPrice",
HeaderText = "Discount Price",
Expression = "Unitprice*discount",
CaseSensitive = false
};
sfgrid.Columns.Add(DiscountColumn);
See Also
Expression
Gets or sets an expression which used to calculate values for DataGridUnboundColumn. The user can populate the data for unbound
column by setting Expression or
Declaration
public string Expression { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies an expression to populate the data for DataGridUnboundColumn. The default value is string.Empty. |
Remarks
The user can specify the arithmetic or logic expression using Expression property to compute the display value for the DataGridUnboundColumn. By default, the expression is evaluated with casing. The user can disable the casing while evaluating the Expression by setting CaseSensitive property to false.
Examples
GridUnboundColumn DiscountColumn = new GridUnboundColumn()
{
MappingName = "DiscountPrice",
HeaderText = "Discount Price",
Expression = "UnitPrice*Discount"
};
sfgrid.Columns.Add(DiscountColumn);
See Also
Methods
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
GetFormattedValue(Object)
Gets the Formatted value for the Content of a record cell in the column based on the Format and CultureInfo of the column.
Declaration
public override object GetFormattedValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type |
---|
System.Object |