10406 : How can I show DateTime value in a GridCell in a custom format?

Question

Property GridColumn.Type = TimeDate allows to show DateTime value as date or as time, but is necessary for me both simultaneously. How can I show DateTime value in a GridCell in a custom format?

Answer

Depends on how you want to edit the cell… If you can suffice with a string editor I would treat the field as a string. If you have a special editor like a date+time picker I would go for a CustomCell class and implement the OnCustomCellEditStartByKey etc…

Leave a Reply