Using a DatePicker in a DataGrid? - Rudi Grobler

Using a DatePicker in a DataGrid?

Wow, the WPF Toolkit has just been released and already I had a email from someone wanting to know how to use the DatePicker in a DataGrid! Here is a very basic example

<toolkit:DataGridTemplateColumn Header="Date Of Birth">
    <toolkit:DataGridTemplateColumn.CellTemplate>
        <DataTemplate>
            <toolkit:DatePicker SelectedDate="{Binding DOB}" />
        </DataTemplate>
    </toolkit:DataGridTemplateColumn.CellTemplate>    
</toolkit:DataGridTemplateColumn>

And this is how it looks…

And that is it, hopefully we will soon see a DataGridDatePickerColumn…

[UPDATE] WPF Toolkit: DataGrid Feature Walkthrough

kick it on DotNetKicks.com
Published Wednesday, October 29, 2008 1:45 PM by rudi

Comments

# Using a DatePicker in a DataGrid

You've been kicked (a good thing) - Trackback from DotNetKicks.com

Wednesday, October 29, 2008 1:48 PM by DotNetKicks.com

# 2008 October 30 - Links for today &laquo; My (almost) Daily Links

Pingback from  2008 October 30 - Links for today &laquo; My (almost) Daily Links

Thursday, October 30, 2008 9:18 AM by 2008 October 30 - Links for today « My (almost) Daily Links