Class GridUnboundColumn
Represents the column which is used to display additional information in columns which are not bound with data object.
Implements
Inherited Members
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class GridUnboundColumn : GridTextColumn, 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
GridUnboundColumn()
Initializes a new instance of the GridUnboundColumn class.
Declaration
public GridUnboundColumn()
Properties
CaseSensitive
Gets or sets a value that indicates the casing of Expression evaluation for computing the display value of the GridUnboundColumn.
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 GridUnboundColumn. 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 GridUnboundColumn. The user can populate the data for unbound column by setting Expression or Format property.
Declaration
public string Expression { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies an expression to populate the data for GridUnboundColumn. 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 GridUnboundColumn. 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 | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |
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 | The actual value of the record cell in the column. |
Returns
Type | Description |
---|---|
System.Object | The formatted value based on the Format and CultureInfo properties of the column. |