how to Print values in Gridview?

Posted by Hariinakoti under ASP.NET on 4/17/2012 | Points: 10 | Views : 1580 | Status : [Member] | Replies : 6
Hi every one,
In my task have entrydate and lastdate is there and 3 radiobuttons also there(one week,two weeks,four weeks).If we click one week entrydate to after week days records will be dispaly in grid view.Can any one tell me.Plz check attached file.

Thanks & Regards
Hari

Thanks & Regards
Hari



Responses

Posted by: Sksamantaray on: 4/20/2012 [Member] Silver | Points: 25

Up
0
Down
Hi ,
Need a clarification:
when you select a start date and radio button , do you want 7days from that date or first day of that week?


Thanks,
Sanjay

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetrajanikanth on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
Can you make it more clear. i am not able to understand

____________
www.flickr.com/photos/psdesigner/

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 4/20/2012 [Member] Starter | Points: 25

Up
0
Down
hi..

If you want to print the values present in the gridview means refer the link..
http://www.dotnetcode.in/2012/04/take-print-only-gridview-data-in-aspnet.html

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 4/21/2012 [Member] Starter | Points: 25

Up
0
Down
@Sksamantaray
Plz see attached file...

Regards
Hari

Thanks & Regards
Hari

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 4/21/2012 [Member] Silver | Points: 25

Up
0
Down
Hi Hariinakoti,
I have gone through your screen shot.
In your screen it is "Select Start Date Value is : 16-april-2012" which is a first day of that week"
Now my question is if user select 18th april there and two weeks from the radio button, then calculation should start from 16th april or 18th april.
If 16th april , then you need to always find the first day of the input date and then find the end date of 1/2/4 weeks .
Pass the start and end date to your sp, bind the result in gridview and you are done!!!
Hope this will help you, any doubt , get back to me.

Thanks,
Sanjay

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saranpselvam on: 4/23/2014 [Member] Starter | Points: 25

Up
0
Down
HI

this is very simple

you have 3 options right ? good

for example if u want to generate one week data and display it in Grid means

write your sql query like

select * from Test where entrydate between entrydate and entrydate+7

and then bind the result into grid

Thanks
Saranpselvam@gmail.com

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response