Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone..

How to maintain time sheet of employees based on From date to till date in a GridView.


Any help..
Posted
Comments
AshishChaudha 24-Jan-13 2:24am    
what you have tried so far??

1 solution

"Select * from DataTable WHERE ((FirstDate >='" + first date time+ "') AND (LastDate<= '" + last date time+ "'))"

Try to use this select command for the adapter to the dataset...
after that you will get all rows which is lies between these dates...

Best Regards
Hemant Tyagi
+91-9045263253
Write on : Hemantt84@hotmail.com
 
Share this answer
 
v2

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