[]
        
(Showing Draft Content)

C1.Xamarin.Forms.Grid.GridColumn

GridColumn Class

Represents a grid column.

Inheritance
GridColumn
Namespace: C1.Xamarin.Forms.Grid
Assembly: C1.Xamarin.Forms.Grid.dll
Syntax
public class GridColumn : GridRowCol, INotifyPropertyChanged, INotifyPropertyChanging

Constructors

Name Description
GridColumn()

Initializes a new instance of the GridColumn class.

GridColumn(PropertyInfo)

Initializes a new instance of the GridColumn class.

Properties

Name Description
ActualHeader

Gets the header that will be shown in the column header. if Header is not specified the Binding property will be used.

ActualWidth

Gets the actual width of the column in pixels.

Aggregate

Gets or sets the type of aggregate to include in group headers.

AllowDragging

Gets or sets a value indicating whether this column can be dragged.

AllowMerging

Gets or sets a value that indicates whether cells in this column can be merged.

AllowResizing

Gets or sets a value indicating whether this column can be resized.

AllowSorting

Gets or sets a value that indicates whether the user can sort this column by tapping the column header.

BackgroundColor

Gets or sets the Xamarin.Forms.Color used to paint the background of cells in this column.

Binding

Gets or sets the binding.

CellEditingTemplate

Gets or sets the template used to edit a cell.

CellTemplate

Gets or sets the template used to display the contents of a cell that is not in editing mode.

ColumnName

Gets or sets a value used as an identifier for the column.

Columns

Gets the columns collection containing this column.

DataMap

Gets or sets the DataMap used to convert raw values into display values for the column.

DataType

Gets the type of the data bound to this column.

Format

Gets or sets the format applied to the displayed data.

Grid

Gets the grid containing this column.

Header

Gets or sets text shown in the header of this column.

HeaderBackgroundColor

Gets or sets the Xamarin.Forms.Color used to paint the background of header cells in this column.

HeaderHorizontalAlignment

Gets or sets the horizontal alignment of the header.

HeaderTextColor

Gets or sets the Xamarin.Forms.Color used to paint the foreground of header cells in this column.

HorizontalAlignment

Gets or sets the horizontal alignment.

InputType

Gets or sets the type of keyboard shown when the cell is in edit-mode.

IsReadOnly

Gets or sets a value indicating whether this column is read only. If the grid is set to be read-only this property will be ignored.

IsVisible

Gets or sets a value indicating whether the column is visible and not collapsed.

MaxWidth

Gets or sets the maximum width of the column.

MinWidth

Gets or sets the minimum width of the column.

PropertyInfo

Gets or sets a PropertyInfo object used for binding the column to items in the data source.

SortDirection

Gets the sort direction when the underlying collection is sorted by the same field as this column's SortMemberPath or Binding.

SortMemberPath

Gets or sets the path used to sort when the column header of this column is tapped.

TextColor

Gets or sets the Xamarin.Forms.Color used to paint the foreground of cells in this column.

ValueConverter

Gets or sets an Xamarin.Forms.IValueConverter associated with this column's Binding.

Width

Gets or sets the width of the column.

WordWrap

Gets or sets a value indicating whether cells in the column wrap their content.

Methods

Name Description
AllowEditing(GridRow)

Returns true when the cell in the intersection of the specified row and this column can be edited.

BindCellContent(View, GridCellType, GridRow)

Binds the content of the cell with the data item.

CreateBindingFunction(Type, string)

Creates a compiled function to access the property specified by the bindingPath of the itemType.

CreateCellContent(GridCellType, object, GridRow)

Creates the content of the cell (Without binding it to the data item).

CreateCellEditor(GridRow)

Creates the cell editor.

GetCellContentType(GridCellType, GridRow)

Gets the type of cell content.

GetCellText(GridCellType, GridRow)

Gets the text corresponding to the cell in the intersection of the specified row and this column.

GetCellValue(GridCellType, GridRow)

Gets the value corresponding to the cell in the intersection of the specified row and this column.

GetCellValue(object)

Gets the value from data item corresponding to this column.

GetEditorValue(GridRow, View)

Gets the editor value.

OnEditEnded(GridCellRange, GridRow, View, bool)

Called before the cell ends editing.

PrepareCell(GridCellType, GridRow, GridCellView)

Prepares the cell to be shown.

SetCellValue(GridCellType, GridRow, object)

Sets the value corresponding to the cell in the intersection of the specified row and this column.

SetCellValue(object, object)

Sets the specified value to dataItem property related to this column.

UnbindCellContent(View, GridCellType, GridRow)

Unbinds the content of the cell with the data item.