Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i need monthwise Report using Grid View?

Example


AUGUST '13 1 2 3 5 6 7 9 up to 31
DW XXL 20 10 365 25 155 790 20

My Table name

deliveryOrdef Name

Marking Date qty
DWXXl 01/08/2013 20
Dwxxl 02/08/2013 10


Please help me
Posted
Updated 30-Aug-13 19:50pm
v3
Comments
Sadique KT 31-Aug-13 1:27am    
what report ? where is your table ? what you tried?
manikjeyam 31-Aug-13 1:53am    
deliveryOrdef Name

This is my table format
Marking Date qty
DWXXl 01/08/2013 20
Dwxxl 02/08/2013 10
CodeBlack 31-Aug-13 1:30am    
sorry we can not read your mind :(
manikjeyam 31-Aug-13 1:53am    
deliveryOrdef Name

this is my table format
Marking Date qty
DWXXl 01/08/2013 20
Dwxxl 02/08/2013 10

1 solution

Create Stored Procedure or simply write query

SQL
SELECT * FROM deliveryOrdefName where DatePart(MM,Date)=@Month AND DatePart(YYYY,Date)=@year 

Assign the result to your grid
 
Share this answer
 
Comments
manikjeyam 31-Aug-13 2:10am    
how to display gird
like
name 1 2 3 4
dwxxl 10 20
Sadique KT 31-Aug-13 2:15am    
what is 1 2 3 4?
Sadique KT 31-Aug-13 2:16am    
Do you want all records of one user to be shown in single row?? do you have multiple records for a person in same date?
Your requirement is not clear!!!
manikjeyam 31-Aug-13 2:18am    
date sir
example
Markinname date Qty
dwxxl 01/08/2013 20
Dwxxl 02/08/2013 30

it will display grid like
marking name 1 2
Dwxxl 20 30
Sadique KT 31-Aug-13 2:22am    
You can do it from SQL using Pivot else can create table dynamically in c# with table header as 1,2,3..

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