Hi Mudassar,
That wasn't quite what I needed, but it's also good to know, so thank you for that.
I figured out my problem was to remove the section where it was counting the page lines and that resolved my issue.
foreach (GridViewRow row in GridViewTowLot.Rows) { if (row.RowIndex % 14 == 0 && row.RowIndex != 0) { row.Attributes["style"] = "page-break-after:always;"; } }
Thank you, again, for your help. This code is great!