Can u please tell me how to freeze gridview header other than CSS option.I tried this option but its changing the entire look of the page.Font CSS is not workly properly.
Can u tell me other option.
Can u tell me other option.
td.locked, th.locked {
position:relative;
left:expression((this.parentElement.parentElement.parentElement.parentElement.scrollLeft-2)+'px');
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[0].CssClass = "locked";
}
}
Comment