Border Color & Width in DataGrid?

Discussion in 'ASP .Net' started by Arpan, Aug 4, 2006.

  1. Arpan

    Arpan Guest

    The output of a DataGrid is nothing but a HTML table. To color or
    change the width of the outer 4 borders of a DataGrid, one can use the
    properties "BorderColor" & "BorderWidth" respectively but how does one
    change the border color & width of the 4 borders surrounding each cell?

    There are 4 other properties apparently meant for changing the border
    color & width of the 4 borders surrounding each cell i.e.
    HeaderStyle-BorderColor & HeaderStyle-BorderWidth (for the headers) &
    ItemStyle-BorderColor & ItemStyle-BorderWidth (for the items) but using
    them doesn't change the border properties around each cell.

    Thanks,

    Arpan
    Arpan, Aug 4, 2006
    #1
    1. Advertising

  2. Arpan

    Arpan Guest

    Please do not bother to reply to my post. I got the solution.

    Arpan


    Arpan wrote:
    > The output of a DataGrid is nothing but a HTML table. To color or
    > change the width of the outer 4 borders of a DataGrid, one can use the
    > properties "BorderColor" & "BorderWidth" respectively but how does one
    > change the border color & width of the 4 borders surrounding each cell?
    >
    > There are 4 other properties apparently meant for changing the border
    > color & width of the 4 borders surrounding each cell i.e.
    > HeaderStyle-BorderColor & HeaderStyle-BorderWidth (for the headers) &
    > ItemStyle-BorderColor & ItemStyle-BorderWidth (for the items) but using
    > them doesn't change the border properties around each cell.
    >
    > Thanks,
    >
    > Arpan
    Arpan, Aug 4, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    0
    Views:
    2,257
    tshad
    Jan 31, 2005
  2. AndrewF
    Replies:
    1
    Views:
    773
    Bruce Barker
    Oct 10, 2005
  3. Coder
    Replies:
    1
    Views:
    696
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
  4. =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=

    border-color: #003366; border-width: 2px;

    =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=, Jul 17, 2006, in forum: HTML
    Replies:
    64
    Views:
    3,529
    Adrienne Boswell
    Jul 30, 2006
  5. Replies:
    1
    Views:
    267
    marss
    Feb 14, 2007
Loading...

Share This Page