title: Why datepicker not appearing in my datagrid
body: <p>Why datepicker is not appearing in my datagrid.
  I have textblock, one datepicker and then again textblock in total three columns, Those two textblocks appears properly but the datepicker do not appear. whereas there is no problem in binding because if a have applied same in the listview and there they are appearing, it's something wrong i have done in xaml in datagrid which i am not able to figure it out. I want user to select dates from this datepicker.</p>
  
  <p>Below is my code, what i am missing any idea ?</p>
  
  <pre><code>&lt;DataGrid AutoGenerateColumns="False" 
      ColumnWidth="*"    
      AutoGenerateColumns="False"
      CanUserSortColumns="False"
      ItemsSource="{Binding EquipMaintCollection}" 
      SelectedIndex="{Binding SelectedIndexOfItem}" 
      SelectedItem="{Binding SelectedMaintElement}"&gt;
      &lt;DataGrid.Columns&gt;
          &lt;DataGridTextColumn Binding="{Binding Name}" Header="{x:Static res:LocalizedString.Name}" /&gt;
             &lt;DataGridTemplateColumn Header="MainteDue"&gt;
              &lt;DataGridTemplateColumn.CellEditingTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;DatePicker x:Name="MainteDue" SelectedDate="{Binding MainteDue, Mode=TwoWay}" /&gt;
                  &lt;/DataTemplate&gt;
              &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;
              &lt;DataGridTemplateColumn.CellTemplate&gt;
                  &lt;DataTemplate&gt;
                       &lt;TextBlock Text="{Binding Path=MainteDue,Mode=TwoWay,StringFormat={}{0:dd/MM/yyyy}}"  VerticalAlignment="Center" HorizontalAlignment="Left"&gt;
                      &lt;/TextBlock&gt;
                  &lt;/DataTemplate&gt;
              &lt;/DataGridTemplateColumn.CellTemplate&gt;
          &lt;/DataGridTemplateColumn&gt;       
          &lt;DataGridTextColumn Header="Until Due" Width="*" MinWidth="100" Foreground="{Binding UntilDue, Converter={StaticResource BoolToRedBrushConverter}}" Binding="{Binding Path=UntilDue}" /&gt;
      &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>