In the database one table named purchace
| purid | purno | purdate | itemid | purqty | putgtotal | balance |
| | | | | | | |
I want to select itemname ,sum(purqty),sum(balance) from purchace where purdate is less than the selected date from datetimepicker1 and this will displayed in datagridview. plz help?

Sam HobbsRank #107 · 20.5K reputationPosted Jul 10, 2011, 4:46 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jul 10, 2011, 10:13 PM EDT
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 10, 2011, 10:57 PM EDT
What Suthish said is right.
For Sql stuff refer this: SQL
Gridview Control: Link
so many articles are available in this site regarding Gridview....