add header after each 15 Records
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, Some time before I was struggling with Page break. now I found the method for page break nad still finding to add columns headers after 15 rows. I am using the following script to set up the page break after printing 15 items in a page. It is working all right. Is there any other way to insert page break after certain page margin? protected void GVMaterialMovement_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { count++; if(count > 15) { e.Row.Style.Add("page-break-after", "always"); count = 0; } } } Is there any similar way to add header after each 15 Records?
Bajrang Singh Using .net 2.0 (VS2005)