Class GridUnboundColumn
Represents the column which used to display additional information in columns which are not bound with data object.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.DataGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class GridUnboundColumn : GridTemplateColumn, IDisposable, INotifyDependencyPropertyChanged, IFilterDefinition
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
GridUnboundColumn()
Initializes a new instance of GridUnboundColumn class.
Declaration
public GridUnboundColumn()
Fields
CaseSensitiveProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridUnboundColumn.CaseSensitive dependency property.
Declaration
public static readonly DependencyProperty CaseSensitiveProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridUnboundColumn.CaseSensitive dependency property.
ExpressionProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridUnboundColumn.Expression dependency property.
Declaration
public static readonly DependencyProperty ExpressionProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridUnboundColumn.Expression dependency property.
FormatProperty
Identifies the Syncfusion.UI.Xaml.Grid.GridUnboundColumn.Format dependency property.
Declaration
public static readonly DependencyProperty FormatProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Remarks
The identifier for the Syncfusion.UI.Xaml.Grid.GridUnboundColumn.Format dependency property.
Properties
CaseSensitive
Gets or sets a value that indicates the casing of expression evaluation.
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. |
Expression
Gets or sets the expression used to populate the data for the column.
Declaration
public string Expression { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the expression to populate the data for the column. The default value is string.Empty. |
Remarks
Expression used to specify the arithmetic or logic expression to compulate the display value for the column using this Expression property. By default, GridUnboundColumn evaluates the expression with casing and it can be disabled by setting CaseSensitive property to false. Below are the list of arithmetic operations supported.
Arithmetic operationsOperator | |
---|---|
Add+ | |
Subtract- | |
Multiply* | |
Divide/ | |
Power^ | |
Greater Than> | |
Less Than< | |
Power^ | |
Equal= | |
GreaterThanOrEqual>= | |
LessThanOrEqual<= |
Logical operationsOperator | |
---|---|
AND(char)135 | |
OR(char)136 | |
OR(char)137 |
Examples
<syncfusion:GridNumericColumn MappingName="Discount" />
<syncfusion:GridNumericColumn MappingName="Amount" />
<syncfusion:GridUnBoundColumn Expression="Amount*Discount/100"
HeaderText="Discount Amount"
MappingName="DiscountAmount" />
Format
Gets or sets the Format to display a value with other columns value in GridUnBoundColumn.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the format of GridUnBoundColumn. The default value is |
Methods
CanEditCell(Int32)
Determines whether the cells in GridUnBoundColumn can be edited.
Declaration
protected override bool CanEditCell(int rowIndex = -1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the unbound column has loaded with EditTemplate or EditTemplateSelector. If the GridUnBoundColumn loaded with CellTemplate , returns false. |