Home Forums WPF controls Xceed DataGrid for WPF How to clear date from the datepicker

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

    Hi,

    Is there a way to clear (set to null) the date using the datepicker in the datagrid?

    Imported from legacy forums. Posted by Wally (had 2728 views)

    Xceed Support
    Member
    Post count: 5658

    At the moment, one would have to “empty” all 3 text regions (Year, Month, Day) of the DatePicker for the date to turn null (done by selecting the text and deleting it ).

    We are currently working on an improved template for the DatePicker that would simplify this mather.

    If you wish to have UI such as a CheckBox to set the date to null, you would have to create a DatePicker ControlTemplate that adds one. You can reverse engineer the actual DatePicker’s ControlTemplate by using StyleSnooper

    http://wpfwonderland.wordpress.com/2007/01/02/wpf-tools-stylesnooper/

    Note: The tool was originally from Lester Lobo, but could not easily find any links to Lester’s post. Anyway, thanks to Walt Ritscher for the repost and to Ælij for the revamping.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 700 views)

    User (Old forums)
    Member
    Post count: 23064

    Thank you very much for the response. I will take a look at the style snooper.

    Imported from legacy forums. Posted by Wally (had 4032 views)

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