Click here to Skip to main content
15,921,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my design

XML
<div class="uploader_generic-table">


                <div style="display: block;" id="divGrid">
                    @(Html.Ubs().Grid("grdTemplate")
          .Url(Url.Action("SelectAll", "SaleIn", new { SiteKey = ViewBag.SiteKey })).Showtotal(true)
          .Columns(
                new Column
                {
                    Name = "ID",
                    ClientFormat = ".ID",
                    Header = "<center>No</center>",
                    Sortable = false,
                    PercentWidth = 5
                },
                  new Column
                {
                    Name = "TemplateType",
                    ClientFormat = ".TemplateType",
                    Header = "<center>Type</center>",
                    Sortable = false,
                    PercentWidth = 10
                },
                 new Column
                 {
                     Name = "PartnerName",
                     ClientFormat = ".PartnerName",
                     Header = "<center>Partner Name</center>",
                     Sortable = false,
                     PercentWidth = 10
                 },
                  new Column
                 {
                     Name = "DateRange",
                     ClientFormat = ".DateRange",
                     Header = "<center>Date Period</center>",
                     Sortable = false,
                     PercentWidth = 15
                 },
                 new Column
                 {
                     Name = "TxCount",
                     ClientFormat = ".TxCount",
                     Header = "<center>Rows</center>",
                     Sortable = false,
                     PercentWidth = 6
                 },
                 new Column
                 {
                     Name = "CustMappCount",
                     ClientFormat = ".CustMappCount",
                     Header = "<center>Customer</center>",
                     Sortable = false,
                     PercentWidth = 8
                 },

                 new Column
                 {
                     Name = "ProMappCount",
                     ClientFormat = ".ProMappCount",
                     Header = "<center>Product</center>",
                     Sortable = false,
                     PercentWidth = 8
                 },

                new Column
                {
                    Name = "Country",
                    ClientFormat = ".Country",
                    Header = "<center>Country</center>",
                    Sortable = false,
                    PercentWidth = 8
                },
                                     new Column
                                 {
                                     Name = "CreatedDate",
                                     ClientFormat = "<center>.CreatedDate</center>",
                                     Header = "<center>Uploaded</center>",
                                     Sortable = false,
                                     PercentWidth = 8
                                 },
                                      new Column
                                 {
                                     Name = "UpdatedBy",
                                     ClientFormat = "<center>.UpdatedBy</center>",
                                     Header = "<center>Updated By</center>",
                                     Sortable = false,
                                     PercentWidth = 8
                                 },
                 new Column
                 {
                     Name = "",
                     ClientFormat = "<center>"+StrLinks+"</center>",
                     Header = "<center>Action</center>",
                     Sortable = false,
                     PercentWidth = 11
                 }
            )
            .ShowFooter(true).ShowLoader(true).SingleColumnSort(true).ShowHeader(true)
                         .Groupable(false)
        )
                </div>
            </div>






And CSS Property is below



CSS
#admin-new .uploader_generic-table #divGrid th:first-child div:hover
{
    background-position: right -29px;
    cursor: pointer;
}




This Property is working for first child only,now if i want for 3rd column then what should i do??
Posted

1 solution

Try this

CSS
#admin-new .uploader_generic-table #divGrid th:nth-child(3) div:hover
{
    background-position: right -29px;
    cursor: pointer;
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900