Click here to Skip to main content
15,886,077 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi friends

i take one data grid in that i bind data with database.in that db i created 4 fields.after entering the data it will displaying in the grid,in that db i given datetime field.

if i select fromdate to todate the data has to display in the grid.
how to select data form todates .how to display in that grid

is there any date events to do like that.can u give me any suggestions
if u have any doubts in that mail me pbkc92@gmail.com i will send that picture .
Posted

1 solution

Use DateTimePicker to get dates.
Write a query like this
SELECT somecolumns FROM table WHERE somecolumn >= '2013-12-01' AND
somecolumn <= '2013-12-06'.
Dates are replaced by your fromdate and todate.
execute and display result in grid.
 
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