You must Sign In to post a response.
  • Category: ASP.NET

    CSS Inside the gridview control problem.

    I had a gridview control in my aspx page.I have to apply css class for that gridview control.And also i have to put treeview control inside the grid.And also i have to create a css class for that treeview.when the grid is displayed,there should be border color appeared in treeview control.And the css for treeview control doesn't work.what was the problem here.Plz give me a soln for that.My CSS Class for gridview control is given below.

    /////CSS For Gridview///////////


    .GridView
    {
    border: solid 1px #f2a207;
    margin-left: 37px;
    }
    .GridView td
    {

    border: solid 1px #f2a207 !important;
    margin: 1px 1px 1px 1px;
    padding: 1px 1px 1px 1px;
    text-align: left;
    font-weight: bold;
    font-family: Arial;
    padding-left: 14px;
    }

    .GridView th
    {
    background-color: #FBF1B3 !important;
    border: solid 1px #f2a207 !important;
    text-align: left;
    font-weight: bold;
    color: Black;
    padding-left: 14px;
    height: 25px;
    }
    .GridView a
    {
    text-align: left;
    font-weight: bold;
    color: Blue;
    text-decoration: none;
    }
    .GridItem
    {
    background-color: #f3dc3e;
    }
    .GridView caption
    {
    background: url(../images1/docman_04.jpg) repeat-x !important;
    border: 1px solid #f2a207 !important;
    font-weight: bold; /*color:#E60000;*/
    }
    .GridAltItem
    {
    background-color: #f3dc3e;
    }

    .block .GridView th
    {
    text-align: left;
    text-indent: 1px;
    }

    .blick .GridView td
    {
    border: solid 1px #f2a207 !important;
    border-width:thin !important;
    margin: 1px 1px 1px 1px;
    padding: 1px 1px 1px 1px;
    text-align: left;
    font-weight: bold;
    font-family: Arial;
    padding-left: 14px;

    }

    /////CSS Class For TreeView//////


    .TreeView
    {
    border-width:1px;
    background-color:#FBF1B3;
    border-right-color:#f2a207;
    border-top-color:#f2a207;
    border-bottom-color:#f2a207;
    border-left-color:#f2a207;

    }
  • #435668
    Please check if you have applied the cssClass for the treeview control.
    THIS POSTING IS PROVIDED WITH NO WARRANTIES, BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT AS PER MY KNOWLEDGE, NOT TRIED IT.

    Regards
    ---------------------
    Venkatesh Ellur
    9886417764
    venkatesh.ellur@gmail.com
    ---------------------


This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.