asp.net - Freezing First Columns and Fist Column's Headers, cross browser solution? -


i have page have gridview gridview have lot of rows clients want freeze fisrt column , curresponding header, , tried below code

css

div#div-datagrid  { /*style="height: 382px; overflow: scroll; width: 100%"*/ width:  100%; height: 382px; overflow: scroll; /*scrollbar-base-color:#ffeaff;*/ }  /* locks left column */ td.locked, th.locked { position:relative; cursor: default; background-color: white; /*ie5+ only*/ left:expression(document.getelementbyid("div-datagrid").scrollleft-2); } 

.cs

protected void mygrid_rowdatabound(object sender, gridviewroweventargs e) { e.row.cells[0].cssclass = "locked"; e.row.cells[1].cssclass = "locked"; } 

this working fine in ie not working in ff , chrome. solution?


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -