color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalini166
    New Member
    • Apr 2008
    • 70

    color

    I set BorderColor, it sets the color of the outer border around the datagrid. The inner lines remain white (or some very light color) and I can't ...


    pls help me.
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi shalini166,

    You can use CSS to achieve this. Set the CssClass property of the datagrid ("dg" in my example) and use the following in your style sheet:
    Code:
     .dg td 
    {
    border:solid 1px red; 
    }
    You can use this to set any of the styles of your grid & your grid cells.

    Hope this helps,

    Dr B

    Comment

    • shalini166
      New Member
      • Apr 2008
      • 70

      #3
      Sir

      thank u. i change the cssclass property to dg.

      and place the code

      .dg td
      {
      border:solid 1px red;
      }

      then wat else i will do

      pls help me.

      Comment

      • DrBunchman
        Recognized Expert Contributor
        • Jan 2008
        • 979

        #4
        That's it....did it not work for you?

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          First off lets be clear on the problem.
          DataGrid is an object used mostly in .NET1.x windows applications.
          Are you using that object? Or possible DataGridView(wi ndows app .NET2.0+) or GridView(web applications)?

          Each of those objects has a number of different properties which can be set to handle the colorization of your object.

          I would guess that you are using a GridView, based on the CSS discussion. Take a look at the RowStyle, EditRowStyle, PagerStyle and any/all other Style properties on the object.

          Comment

          Working...