Members  Example 
Syncfusion.SfDataGrid.XForms Namespace : GridDateTimeColumn Class

GridDateTimeColumn Class

Represents a SfDataGrid column that hosts Syncfusion.SfDataGrid.XForms.Renderers.SfDatePicker in its cells.
public class GridDateTimeColumn : GridColumn 
Use GridDateTimeColumn to display columns of date-time as picker data in Syncfusion.SfDataGrid.XForms.Renderers.SfDatePicker.

To create a column, add it to the SfDataGrid.Columns collection. To populate the column, bind the column to the data by using the DisplayBinding property. The Binding property is applied to the Syncfusion.SfDataGrid.XForms.Renderers.SfDatePicker 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 in. 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 your data source and target are different types.

    <sfgrid:GridDateTimeColumn Format="d"
                               HeaderText="Shipped Date"
                               MappingName="ShippedDate" />
Inheritance Hierarchy



Syncfusion.SfDataGrid.XForms: 17.3451.0.26

See Also