title: WPF Datagrid time field format hh:mm
body: <p>I use a WPF Toolkit Datagrid with a LINQ to SQL</p>
  
  <pre><code>       &lt;my:DataGrid AutoGenerateColumns="False" Name="dataGrid2"&gt;
          &lt;my:DataGrid.Columns&gt;
              &lt;my:DataGridTextColumn Header="Date" MinWidth="80"
                                         Binding="{Binding Date, StringFormat=d}"
                                         CanUserSort="False"/&gt;
              &lt;my:DataGridTextColumn Header="Time"  MinWidth="70" 
                                         Binding="{Binding Time}"
                                         CanUserSort="False" /&gt;
              &lt;my:DataGridTextColumn Header="Description" MinWidth="200"
                                         Binding="{Binding Description}" 
                                         CanUserSort="False"/&gt;
          &lt;/my:DataGrid.Columns&gt;
      &lt;/my:DataGrid&gt;
  </code></pre>
  
  <p>Column <code>Time</code> is bound to a SQL Server table field of a <code>Time</code> datatype. Now time value on the Datagrid is displayed in a format <strong>hh:mm:ss</strong>. </p>
  
  <p>How could I change a time represantation in the Time column of a Datagrid to <strong>hh:mm</strong>, removing seconds?</p>
  
  <p><strong>EDIT</strong>:
  Using  <code>StringFormat=t</code> gives no result.</p>
  
  <pre><code>&lt;my:DataGridTextColumn Header="Time"  MinWidth="70" 
                                         Binding="{Binding Time, StringFormat=t}"
                                         CanUserSort="False" /&gt;
  </code></pre>