Click here to Skip to main content
15,904,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I have a table "Information" in my dataBase(SQL), it has 3 fields : ID , Date , Description
I want to show this data in a gridview between date1 and date2, but I want to show an empty record for date3 if date3 is between date1 and date2 but there is no data in my table that Date = date3, how can i do this with C# and Linq?
Posted
Updated 27-Sep-10 20:44pm
v2

1 solution

The question is not so clear but I have optimized some thing from that,

My question is that why on the earth you want to accomplish the things using C# and Linq rather then applying Sql Query directly,

See the article for more info.
http://www.plus2net.com/sql_tutorial/between-date.ph[^]

Please vote and Accept Answer if it Helped.
 
Share this answer
 

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