Gridview column and row dividers

Posted on 2007-10-18
Last Modified: 2012-08-13
How can blank paddings be taken out completely and thin silver dividers be placed between column groups and rows in a gridview? Please kindly provide samples. Thanks.
Question by:ksfok
    1 Comment
    LVL 26

    Accepted Solution

    try and search for themes and skins for gridview

    or try applying style as shown below

    <asp:GridView runat="server" ID="gridView"
                          CSSClass="tabulardata" CellSpacing="1"

    <style type="text/css">
            TABLE.tabulardata {
                  BACKGROUND-COLOR: #74aefa;
            TABLE.tabulardata TR {
                  BACKGROUND-COLOR: white;
            TABLE.tabulardata TH {
                  BACKGROUND-COLOR: blue;
            TABLE.tabulardata TD {

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Title # Comments Views Activity
    Deselect Grid view Row 4 28
    iTextSharp 3 33
    Executing several SQL INSERT statement in ASP.NET VB.NET 5 35
    call function 8 33
    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video discusses moving either the default database or any database to a new volume.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now