Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Experts,
I am very much new to wpf. And i have a task is:- i have a csv file which having two columns start date and end date. Now i have to bind this csv file to a gridview in WPF application. This part i have done already. But now i have to validate is start date should not bigger than end date. I have to show this error in respective row. How can i do this, Please help me.
Posted
Updated 13-Aug-15 0:04am
v2
Comments
Herman<T>.Instance 13-Aug-15 6:32am    
What have you tried?
Sunil Kumar Pandab 13-Aug-15 6:35am    
XAML code
---------------------
<grid height="391" width="740">
<ListView x:Name="ListCreatives" HorizontalAlignment="Left" Height="319" VerticalAlignment="Top" Width="740" >
<ListView.View>
<gridview>
<gridviewcolumn header="Start Date(DD-MM-YYYY)" displaymemberbinding="{Binding Path=StartDate}">
<gridviewcolumn header="End Date(DD-MM-YYYY)" displaymemberbinding="{Binding Path=EndDate}">

</ListView.View>
</ListView>
<Button Content="Upload" Width="70" Height="30" Click="ButtonBase_OnClick" Margin="12,336,658,25" />

---------------
in code behind i just read csv file and bind into grid as :- ListCreatives.ItemsSource = listCreatives;

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900