Xamarin.Forms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridImageColumn - Xamarin.Forms API Reference | Syncfusion SfDataGrid column that hosts SfImageView in its cells. ">

    Show / Hide Table of Contents

    Class GridImageColumn

    Represents a SfDataGrid column that hosts SfImageView in its cells.

    Inheritance
    System.Object
    GridColumn
    GridImageColumn
    Implements
    System.IDisposable
    Inherited Members
    GridColumn.ColumnSizerProperty
    GridColumn.AllowEditingProperty
    GridColumn.CellStyleProperty
    GridColumn.ActualWidthProperty
    GridColumn.PaddingProperty
    GridColumn.MappingNameProperty
    GridColumn.HeaderTextProperty
    GridColumn.AllowSortingProperty
    GridColumn.FormatProperty
    GridColumn.CultureInfoProperty
    GridColumn.WidthProperty
    GridColumn.HeaderTemplateProperty
    GridColumn.MinimumWidthProperty
    GridColumn.MaximumWidthProperty
    GridColumn.IsHiddenProperty
    GridColumn.AllowFocusProperty
    GridColumn.GroupModeProperty
    GridColumn.SortModeProperty
    GridColumn.HeaderCellTextSizeProperty
    GridColumn.CellTextSizeProperty
    GridColumn.FontAttributeProperty
    GridColumn.RecordFontProperty
    GridColumn.HeaderFontProperty
    GridColumn.HeaderFontAttributeProperty
    GridColumn.TextAlignmentProperty
    GridColumn.HeaderTextAlignmentProperty
    GridColumn.LineBreakModeProperty
    GridColumn.GetFormattedValue(Object)
    GridColumn.SetDisplayBindingConverter()
    GridColumn.CanEditCell()
    GridColumn.Dispose()
    GridColumn.Dispose(Boolean)
    GridColumn.ColumnSizer
    GridColumn.AllowEditing
    GridColumn.CellStyle
    GridColumn.ActualWidth
    GridColumn.LoadUIView
    GridColumn.Padding
    GridColumn.MappingName
    GridColumn.HeaderText
    GridColumn.AllowSorting
    GridColumn.Format
    GridColumn.CultureInfo
    GridColumn.HeaderCellTextSize
    GridColumn.CellTextSize
    GridColumn.FontAttribute
    GridColumn.RecordFont
    GridColumn.HeaderFont
    GridColumn.HeaderFontAttribute
    GridColumn.TextAlignment
    GridColumn.HeaderTextAlignment
    GridColumn.LineBreakMode
    GridColumn.Width
    GridColumn.HeaderTemplate
    GridColumn.ValueBinding
    GridColumn.DisplayBinding
    GridColumn.MinimumWidth
    GridColumn.MaximumWidth
    GridColumn.IsHidden
    GridColumn.GroupMode
    GridColumn.CellType
    GridColumn.SortMode
    GridColumn.AllowFocus
    Namespace: Syncfusion.SfDataGrid.XForms
    Assembly: Syncfusion.SfDataGrid.XForms.dll
    Syntax
    public class GridImageColumn : GridColumn, IDisposable
    Remarks

    Use GridImageColumn to display columns of ImageSource data as a SfImageView. To create a column, add it to the Columns collection and to populate the data to the column set the MappingName to the property in the data source. dataGrid.Columns.Add(new GridSwitchColumn() { MappingName = "DealerImage" });.

    The data can also be populated to the column by using the DisplayBinding property. The Binding property is applied to the SfImageView view created in the column. The Xamarin.Forms.BindableObject.BindingContext for the view in each cell is the data item for the row the cell is present. Therefore, to set up the binding you only have to set the Xamarin.Forms.Binding.Path. Optionally, you can specify a Xamarin.Forms.Binding.Converter if you want to convert the data.

    Constructors

    GridImageColumn()

    Initializes a new instance of the GridImageColumn class.

    Declaration
    public GridImageColumn()

    Fields

    AspectProperty

    Identifies the Aspect Xamarin.Forms.BindableProperty.

    Declaration
    public static readonly BindableProperty AspectProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty
    Remarks

    This Xamarin.Forms.BindableProperty is read-only.

    Properties

    Aspect

    Gets or sets the aspect of the image loaded in the ImageView of the GridImageColumn. The Aspect of the image loaded inside the cells of the GridImageColumn. Defines how an image is displayed inside the cells of the GridImageColumn. The default value is Xamarin.Forms.Aspect.AspectFit.

    GridImageColumn imageColumn;
    imageColumn  = new GridImageColumn();
    imageColumn.MappingName = "DealerImage";
    imageColumn.Aspect = Aspect.AspectFit;
    dataGrid.Columns.Add(imageColumn);
    Declaration
    public Aspect Aspect { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.Aspect

    Implements

    System.IDisposable

    See Also

    https://help.syncfusion.com/xamarin/sfdatagrid/column-types#gridimagecolumn
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved