Avatar of dgloveruk
dgloveruk
 asked on

How do I stop the contents of a gridview splitting across pages when printing?

I have a .net gridview which has cells that contain multiple lines of data.  When the gridview contains a number of rows and I go to print the gridview, where the page ends the row splits half on to the first page and half on to the next.  In this solution the print out is a faxed food order so the item that has its information split regularly gets messed up.

I am hoping either there is simple an attribute I can set or if that's not possible at least something which inserts after a set number of rows which will force a page split.
ASP.NETVisual Basic.NET

Avatar of undefined
Last Comment
dgloveruk

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
dgloveruk

ASKER
OK, I was hoping there was a simple attribute or strategy for making sure the rows weren't wrapped but I understand this might not be possible, thanks for the suggestion.
dgloveruk

ASKER
The solution used in practice was to put a tail message on the end of the printed pages cautioning the reader to be aware that tables can split across pages.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes