I was looking for the solution to add header in each page of print when trying to print the data grid, and I found the following code from a forum:
function print_header() { var table = document.getElementById("dgReport" // the id of your DataGrid<BR> var str = table.outerHTML; str = str.replace(/<tbody>/i, "" str = str.replace(/<tr/i, "<thead style='display:table-header-group'><tr" str = str.replace(/<\/tr>/i, "</tr></thead></tbody>" table.outerHTML = str; }
It is working very fine except not printing the Top border of header after first page. The second, third and consequent pages printing header without top border.
Can anyone help me to find out whats wrong and how to fix?
Thanks a lot.
Regards Nithya.A
Hi all,
I was looking for the solution to add header in each page of print when trying to print the data grid, and I found the following code from a forum:
function print_header() { var table = document.getElementById("dgReport" // the id of your DataGrid<BR> var str = table.outerHTML; str = str.replace(/<tbody>/i, "" str = str.replace(/<tr/i, "<thead style='display:table-header-group'><tr" str = str.replace(/<\/tr>/i, "</tr></thead></tbody>" table.outerHTML = str; }
It is working very fine except not printing the Top border of header after first page. The second, third and consequent pages printing header without top border.
Can anyone help me to find out whats wrong and how to fix?
When a graph is drawn, the focus is kept on the actual underlying competing figures that constitute the graph. Sometimes it is difficult to make assumptions just by looking at these graphs. When looking at a geographical map of data you immediately see exactly where things are happening. This article presents a .NET geographical mapping solution that will illustrate a fairly simple way of implementing these maps.
Have you, as a web developer or designer ever been on sites where the site seems more of a puzzle then a tool to find the information you where looking for? Or are you looking to improve your web design skills? Then read on!
Design & Accessibility
This e-Book will teach you how to become a truly professional developer or designer. By taking usability and accessibility issues in account when designing your websites or applications you can make the difference and avoid a lot of (user) frustration.
Inside ASP.NET is a comprehensive guide to ASP.NET development using Microsoft's .NET development framework. This book presents information on the .NET framework that is of specific interest to Internet and intranet developers, and is split into the following sections: Introducing ASP.NET, Core ASP.NET, ASP.NET and Data Access, Advanced Technologies, Advanced Web Forms, and Putting It All Together
Each chapter tackles a specific area of ASP.NET development, first by giving a detailed overview, then presenting a series of code examples and walk-throughs that illustrate various applications of ASP.NET