Link to home
Start Free TrialLog in
Avatar of David Glover
David GloverFlag for United Kingdom of Great Britain and Northern Ireland

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.
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of David Glover


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.
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.