Gridview full style sheet

Source: Internet
Author: User
  
  
   
    
     
    
      

Style:

.GridViewStyle{       border-right: 2px solid #A7A6AA;    border-bottom: 2px solid #A7A6AA;    border-left: 2px solid white;    border-top: 2px solid white;    padding: 4px;}.GridViewStyle a{    color: #FFFFFF;}.GridViewHeaderStyle th{    border-left: 1px solid #EBE9ED;    border-right: 1px solid #EBE9ED;}.GridViewHeaderStyle{    background-color: #5D7B9D;    font-weight: bold;    color: White;}.GridViewFooterStyle{    background-color: #5D7B9D;    font-weight: bold;    color: White;}.GridViewRowStyle{    background-color: #F7F6F3;    color: #333333;}.GridViewAlternatingRowStyle{    background-color: #FFFFFF;    color: #284775;}.GridViewRowStyle td, .GridViewAlternatingRowStyle td{    border: 1px solid #EBE9ED;}.GridViewSelectedRowStyle{    background-color: #E2DED6;    font-weight: bold;    color: #333333;}.GridViewPagerStyle{    background-color: #284775;    color: #FFFFFF;}.GridViewPagerStyle table /**//* to center the paging links*/{    margin: 0 auto 0 auto;}

 

Use

<Asp: gridview cssclass = "gridviewstyle" runat = "server">
<Footerstyle cssclass = "gridviewfooterstyle"/>
<Rowstyle cssclass = "gridviewrowstyle"/>
<Selectedrowstyle cssclass = "gridviewselectedrowstyle"/>
<Pagerstyle cssclass = "gridviewpagerstyle"/>
<Alternatingrowstyle cssclass = "gridviewalternatingrowstyle"/>
<Headerstyle cssclass = "gridviewheaderstyle"/>
</ASP: gridview>

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.