menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridDateTimeColumn - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridDateTimeColumn

    Represents a SfDataGrid column that hosts Syncfusion.SfDataGrid.Renderers.SfDatePicker in its cells.

    Inheritance
    System.Object
    GridColumn
    GridDateTimeColumn
    Implements
    System.IDisposable
    Inherited Members
    GridColumn.ActualWidth
    GridColumn.AllowEditing
    GridColumn.AllowSorting
    GridColumn.CanEditCell()
    GridColumn.CellTextSize
    GridColumn.CellType
    GridColumn.ColumnSizer
    GridColumn.CultureInfo
    GridColumn.Dispose()
    GridColumn.Dispose(Boolean)
    GridColumn.Format
    GridColumn.GetFormattedValue(Object)
    GridColumn.GroupMode
    GridColumn.HeaderCellTextSize
    GridColumn.HeaderFont
    GridColumn.HeaderTemplate
    GridColumn.HeaderText
    GridColumn.HeaderTextAlignment
    GridColumn.HeaderTextMargin
    GridColumn.IsHidden
    GridColumn.LineBreakMode
    GridColumn.LoadUIView
    GridColumn.MappingName
    GridColumn.MaximumWidth
    GridColumn.MinimumWidth
    GridColumn.RecordFont
    GridColumn.SetGrid(SfDataGrid)
    GridColumn.SortMode
    GridColumn.TextAlignment
    GridColumn.TextMargin
    GridColumn.UserCellType
    GridColumn.Width
    Namespace: Syncfusion.SfDataGrid
    Assembly: Syncfusion.SfDataGrid.Android.dll
    Syntax
    public class GridDateTimeColumn : GridColumn, IDisposable
    Remarks

    Use GridDataTimeColumn to display columns of date-time as picker data in Syncfusion.SfDataGrid.Renderers.SfDatePicker.

    To create a column, add it to the Columns collection. To populate the column, assign the column to the date time data by using the MappingName property. The value is applied to each and every Android.Widget.TextView created in the column. Upon editing it displays Syncfusion.SfDataGrid.Renderers.SfDatePicker for editing values.

    Constructors

    GridDateTimeColumn()

    Initializes a new instance of the GridDateTimeColumn class.

    Declaration
    public GridDateTimeColumn()

    Properties

    MaximumDate

    Gets or sets the maximum date to be available in the DatePicker in each record cell of the GridDateTimeColumn

    Declaration
    public DateTime MaximumDate { get; set; }
    Property Value
    Type Description
    System.DateTime

    The maximum date to be available in the DatePicker.

    Remarks

    A DatePicker control is loaded in the record cells of the GridDateTimeColumn. It enables you to scroll through a list of dates between the MinimumDate and MaximumDate and select one from it.

    Examples
    GridDateTimeColumn dateTimeColumn = new GridDateTimeColumn();
    dateTimeColumn.MaximumDate = new DateTime(2020, 01, 01);
    dateTimeColumn.MinimumDate = new DateTime(1990, 01, 01);
    See Also
    https://help.syncfusion.com/xamarin-android/sfdatagrid/column-types#griddatetimecolumn

    MinimumDate

    Gets or sets the minimum date to be available in the DatePicker in each record cell of the GridDateTimeColumn

    Declaration
    public DateTime MinimumDate { get; set; }
    Property Value
    Type Description
    System.DateTime

    The minimum date to be available in the DatePicker.

    Remarks

    A DatePicker control is loaded in the record cells of the GridDateTimeColumn. It enables you to scroll through a list of dates between the MinimumDate and MaximumDate and select one from it.

    Examples
    GridDateTimeColumn dateTimeColumn = new GridDateTimeColumn();
    dateTimeColumn.MaximumDate = new DateTime(2020, 01, 01);
    dateTimeColumn.MinimumDate = new DateTime(1990, 01, 01);
    See Also
    https://help.syncfusion.com/xamarin-android/sfdatagrid/column-types#griddatetimecolumn

    Events

    Closed

    Event that provides values of the picker when DONE or OK button is clicked.

    Declaration
    public event EventHandler<PickerClosedEventArgs> Closed
    Event Type
    Type
    System.EventHandler<PickerClosedEventArgs>
    Examples
    pickerColumn.Closed += pickerColumn_Closed;
    
    void pickerColumn_Closed(object sender, PickerClosedEventArgs e)
    {
    //You can achieve your requirement here.
    }

    Implements

    System.IDisposable

    See Also

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