Class GridDateTimeColumn
Represents a SfDataGrid column that hosts Syncfusion.SfDataGrid.Renderers.SfDatePicker in its cells.
Implements
Inherited Members
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
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
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.
}