Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a qustion, can anyone help me?

I have gridview in c#, one of the columns of the table has a chechbox and I need to know:
1) How can I print just the rows that I checked?
2) How can I do a checkall button in order to print all the rows?
3) How can I make the button (print) to print the result out in paper?

Thank you for your help.
Posted
Updated 9-Apr-11 2:24am
v2
Comments
Sandeep Mewara 9-Apr-11 7:09am    
homework?
dedoooo 9-Apr-11 7:13am    
No ,it is a huge project and I faced these problems when I programming
Sandeep Mewara 9-Apr-11 7:23am    
Ok.
dedoooo 10-Apr-11 10:50am    
Give me steps to start please, I have code but dose not work ,any one can help me to post it?
Sandeep Mewara 10-Apr-11 11:05am    
Use 'Improve Question' button to edit this one or create a new question with some details.

1 & 2 are fairly obvious test conditions and should be easy to figure out.
3 is a bit more work but there are many articles here on CodeProject to help you as you can see in this list[^].
 
Share this answer
 
Comments
Sandeep Mewara 10-Apr-11 11:05am    
Comment from OP:
please help me in 1 and 2 I do n't know how to figure out in case there is alot of items
please help me in 1 and 2 I do n't know how to figure out in case there is alot of items
 
Share this answer
 
Comments
Sandeep Mewara 10-Apr-11 11:05am    
Not an answer. PLease don't add them as it. It is a comment.
Richard MacCutchan 10-Apr-11 11:27am    
Try looping through them and printing only those rows that have the checkbox set, if "Select All" has been pressed then print all. Not too complicated really.

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