Monthly Archives: February 2012

Gridview Header and first column always show

C#: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)    {        e.Row.Cells[0].CssClass = “locked”;        e.Row.Cells[1].CssClass = “locked”;    } html:   <head runat=”server”>    <title>Untitled Page</title>    <style type=”text/css”> div#div-datagrid {width: 220px;height: 100px;overflow: auto;scrollbar-base-color:#ffeaff;} /* Locks the left column */td.locked, th.locked {font-size: 14px;font-weight: bold;text-align: center;background-color: navy;color: … Continue reading

Posted in ASP.net, C# | Leave a comment