Empty DataGrid Formatting

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Empty DataGrid Formatting

    Hi - I have a datagrid that has a black header and the rows alternate
    white and gray. The problem is that until items are added to the grid,
    the grid appears as a large black rectangle, which is quite ugly. The
    black area is larger then it is once an item is added. How can I solve
    this problem either by:
    A) Having only the header black and the rest of the empty block white or
    gray (preffered solution)
    B) Having the color gray or white until an item is added and then
    changing to my default template colors - this is less ideal since I
    would aslo then have to keep track of if all times are deleted and I go
    back to the empty state.

    thanks!

    Matthew Wieder Guest

  2. Similar Questions and Discussions

    1. Datagrid Formatting
      I am trying to find out if it is possible to format a datagrid to display results in teh following manner; Job: 5453 South Ridge Lane ...
    2. Formatting a datagrid
      Hi, I am working on my first web app that uses a datagrid. I can't seem to find good examples of formatting the grid the way you can in a Windows...
    3. datagrid codebehind formatting
      What if columns are not boundColumns? "Teemu Keiski" <joteke@aspalliance.com> escribió en el mensaje news:eQZRrOYDEHA.1604@TK2MSFTNGP11.phx.gbl...
    4. formatting the data in a datagrid
      Hello, I wish to format the data in one of the columns of a datagrid so that it does not display more than 3 decimal places. I have a datagrid...
    5. Print asp:datagrid with formatting
      Hi I need to Print asp:datagrid with formatting, which will avoid my writing of crystal reports and can directly print with click of a button. ...
  3. #2

    Default Re: Empty DataGrid Formatting

    I believe you go into the Property Builder if it's an ASP.NET grid and
    explicitily set the Header height....


    "Matthew Wieder" <Development@SatoriGroupInc.com> wrote in message
    news:OvcxXBOYDHA.2524@TK2MSFTNGP09.phx.gbl...
    > Hi - I have a datagrid that has a black header and the rows alternate
    > white and gray. The problem is that until items are added to the grid,
    > the grid appears as a large black rectangle, which is quite ugly. The
    > black area is larger then it is once an item is added. How can I solve
    > this problem either by:
    > A) Having only the header black and the rest of the empty block white or
    > gray (preffered solution)
    > B) Having the color gray or white until an item is added and then
    > changing to my default template colors - this is less ideal since I
    > would aslo then have to keep track of if all times are deleted and I go
    > back to the empty state.
    >
    > thanks!
    >

    alien2_51 Guest

  4. #3

    Default Re: Empty DataGrid Formatting

    I'm not sure what version of VS you're using, but in mine, property
    builder doesn't allow setting of the height for the header...
    anyone else?

    alien2_51 wrote:
    > I believe you go into the Property Builder if it's an ASP.NET grid and
    > explicitily set the Header height....
    >
    >
    > "Matthew Wieder" <Development@SatoriGroupInc.com> wrote in message
    > news:OvcxXBOYDHA.2524@TK2MSFTNGP09.phx.gbl...
    >
    >>Hi - I have a datagrid that has a black header and the rows alternate
    >>white and gray. The problem is that until items are added to the grid,
    >>the grid appears as a large black rectangle, which is quite ugly. The
    >>black area is larger then it is once an item is added. How can I solve
    >>this problem either by:
    >>A) Having only the header black and the rest of the empty block white or
    >>gray (preffered solution)
    >>B) Having the color gray or white until an item is added and then
    >>changing to my default template colors - this is less ideal since I
    >>would aslo then have to keep track of if all times are deleted and I go
    >>back to the empty state.
    >>
    >>thanks!
    >>
    >
    >
    >
    Matthew Wieder Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139