Xamarin.iOS

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridUnboundColumn

    Show / Hide Table of Contents

    Class GridUnboundColumn

    Represents the column which is used to display additional information in columns which are not bound with data object.

    Inheritance
    System.Object
    GridColumn
    GridTextColumn
    GridUnboundColumn
    Implements
    System.IDisposable
    Inherited Members
    GridColumn.SetGrid(SfDataGrid)
    GridColumn.CanEditCell()
    GridColumn.Dispose()
    GridColumn.ColumnSizer
    GridColumn.LineBreakMode
    GridColumn.HeaderTemplate
    GridColumn.ActualWidth
    GridColumn.MappingName
    GridColumn.HeaderText
    GridColumn.UserCellType
    GridColumn.AllowSorting
    GridColumn.Format
    GridColumn.CultureInfo
    GridColumn.HeaderTextMargin
    GridColumn.TextMargin
    GridColumn.HeaderCellTextSize
    GridColumn.CellTextSize
    GridColumn.RecordFont
    GridColumn.HeaderFont
    GridColumn.TextAlignment
    GridColumn.HeaderTextAlignment
    GridColumn.AllowEditing
    GridColumn.GroupMode
    GridColumn.CellType
    GridColumn.IsHidden
    GridColumn.Width
    GridColumn.MinimumWidth
    GridColumn.MaximumWidth
    GridColumn.SortMode
    Namespace: Syncfusion.SfDataGrid
    Assembly: Syncfusion.SfDataGrid.iOS.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 indicating whether 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
    https://help.syncfusion.com/xamarin-ios/sfdatagrid/unbound-column#using-expression

    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
    https://help.syncfusion.com/xamarin-ios/sfdatagrid/unbound-column#using-expression

    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
    GridColumn.Dispose(Boolean)

    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.

    Overrides
    GridColumn.GetFormattedValue(Object)

    Implements

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