Using the code
A DataGrid will be rendered as a table element.
If you apply the following CSS rule to
display : table-header-group;
then everything in a
THEAD tag will be printed on every page. However, the DataGrid will not render a
THEAD. So the above style will not work. We can add a
var table = document.getElementById(tableName);
if(table != null)
var head = document.createElement("THEAD");
head.style.display = "table-header-group";
The parameter ‘tableName’ is the ID of the datagrid. Calling this function from Onload will work.
The function create a
THEAD tag and add the first row of the table (header) to it. If the header consists of more than one row you need to add the necessary rows to the created
I have 3 years of IT experience.
Doing : C#, ASP.NET,VB,SQL Server, Oracle
Currently working in Technopark, Kerala,India