Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to set Date format in DataGrid in Xmal file
chetan Allipur
Mar 21 2017 2:34 AM
179
Reply
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>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to connect datagrid with database .
Datagrid Property Of WPF