Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i've created multiple rows in combobbox datagridview, but while printing only first row is printed, how to sole this, i need all the records to be printed?

it is windows application using c#, actually i'm trying to generate bill and only first row is printing but i can see the complete details added in the database.
Posted
Updated 9-Aug-15 9:45am
v2
Comments
Arasappan 9-Aug-15 13:30pm    
Code behind?
ramadevi sagi 9-Aug-15 15:45pm    
it is windows application using c#, actually i'm trying to generate bill and only first row is printing but i can see the complete details added in the database.
Sergey Alexandrovich Kryukov 9-Aug-15 13:33pm    
Sorry, no relevant detail, no advice.
—SA
Arasappan 9-Aug-15 14:48pm    
Surgey.. is there any "for" loop condition to get all the gridvalues because i guess it will take only one row and also he said first ... can u catch me surgey
Sergey Alexandrovich Kryukov 9-Aug-15 21:19pm    
What do you mean by "for look condition"? a condition is just a condition, it can be any boolean expression.
—SA

1 solution

Check out the article An absolute beginner's guide to printing in .NET[^] for some background in printing - and then look at one of the many articles on printing a datagrid for the implementation.

Basically you need a print module that prints n records per page, checks if n < total page and if it is, sets e.HasMorePages to print the next page.
 
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