Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
AddNew row and DateTime picker cell editor (initial value)
posted

Which event would be the right one to consume/handle if on an AddNew row I wanted the date time chooser on a DateTime column to have a specific initialize date. i.e. an arbitrary date in memory (or related to dates on the other data rows) rather than the default functionality which seems to be DateTime.Now.Date or something like that.

 

 

  • 469350
    Verified Answer
    Offline posted

    Hi,

        This has nothing to do with the editor. For any cell in the grid, the default value of the cell comes from the data source, or possible the DefaultCellValue property on the column. If you are using TemplateAddRow's you can also set the default in the InitializeTemplateAddRow event of the grid.