Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi i want to know how to print selectet rows in datagridview in c#

please help me
Posted
Updated 11-Apr-16 18:25pm
Comments
Krunal Rohit 17-Sep-15 0:51am    
You can get the selected rows in some collection i.e List<t> and you it's content for print.

-KR
sreeyush sudhakaran 17-Sep-15 2:27am    
Refer here : http://www.codeproject.com/Articles/28046/Printing-of-DataGridView
Sinisa Hajnal 17-Sep-15 3:27am    
What have you tried?

1 solution

First decide which rows you have to print and then you can make other rows display.style as 'none', so only rows are visible that you need to print, then you can just print whole gridview
Or other way is to take script help, see below link
Print GridView selected record(s) using JQuery and Context help. | Simple .Net Solutions[^]
 
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