Home Forums WPF controls Xceed DataGrid for WPF Transforming data for DatePicker CellEditors

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25035 |

    I have a collection that holds dates as doubles. I am using the DatePicker CellEditor which wants the dates to be strings. How can I capture an event before and after editing to transform the dates to/from strings to doubles?

    I tried exploring the BeginEdit and EndEdit methods but couldn’t figure out how/where to hook them up….

    Imported from legacy forums. Posted by Kevin (had 476 views)

    User (Old forums)
    Member
    Post count: 23064

    I need an example of how to do this in C#, not XAML.

    Imported from legacy forums. Posted by Kevin (had 301 views)

    User (Old forums)
    Member
    Post count: 23064

    You should bind the data using Converter to convert doubles into date first.

    Imported from legacy forums. Posted by nat (had 3242 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.