chetan Allipur

chetan Allipur

  • NA
  • 541
  • 168.9k

How to set Date format in DataGrid in Xmal file

Mar 21 2017 2:34 AM
Here is my code. I am loading the data from the database to DataGrid.
 
<Window x:Class="WPF_ThirdWeek.DataGridView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="DataGridView" Height="350" Width="720">
<Window.Resources>
<Style TargetType="{x:Type DataGridCell}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Bisque"></Setter>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid>
<DataGrid x:Name="grdEmployee" AlternationCount="2" AlternatingRowBackground="Bisque" AutoGenerateColumns="True" />
</Grid>
</Window>
 

Answers (2)