MobileGridDateColumn.cs 573 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using Syncfusion.SfDataGrid.XForms;
  3. using Xamarin.Forms;
  4. namespace comal.timesheets
  5. {
  6. public class MobileGridDateColumn<TEntity> : MobileGridColumn<TEntity, DateTime>
  7. {
  8. public String Format { get; set; }
  9. public MobileGridDateColumn() : base()
  10. {
  11. Width = GridLength.Auto;
  12. }
  13. public override GridColumn CreateColumn()
  14. {
  15. var result = CreateColumn<GridDateTimeColumn>();
  16. result.Format = Format;
  17. return result;
  18. }
  19. }
  20. }