Change font color in Datagrid?

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

  1. #1

    Default Re: Change font color in Datagrid?

    use boundcolumn in the following way

    <asp:datagrid id=grd runat=server BackColor="#ccccff" Border=1
    BorderColor="black" ShowFooter="false"
    AutoGenerateColumns="true"
    >
    <columns>
    <asp:BoundColumn HeaderText="<font color=red>id</font>"
    DataField="fname" runat=server/>
    </columns>
    </asp:datagrid>

    Rajesh

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Rajesh Tiwari Guest

  2. Similar Questions and Discussions

    1. How to change the font, the font size, and color text
      How to change the font, the font size, and the color for a selected text in C++. David
    2. font, font size, background color preferences
      I tell you, this 7.06 drives me nuts. What was so simple in 5.0 now seems so screwball. I am trying to add text to a form I downloaded, but...
    3. How do you change the vertical grid line color of the header in a datagrid???
      Hi, I managed to change the vertical grid line color for all the rows, but can't get it to work for the header as well. Any help? Thanks
    4. How to change the color of the modified fields in a Datagrid?
      I have a situation where in a user would like to see all the modified fields font red in color when a record has been updated in a Datagrid. ...
    5. Fieldmember Font color
      If I want to change the font color of a field During The Movie, how can I do this. I think it should be possible. Looking in the help gives me a way...
  3. #2

    Default Change font color in Datagrid?

    Hi,

    Here you go ->

    Right clikc the datagrid -> Property builder -> format->
    header

    Then set the fontcolor and back color.

    regadrs
    Sreejumon
    DOTNET makes IT happen
    >-----Original Message-----
    >Hey All,
    > This should be easy. I jus t want the header in a
    datagrid to
    >have the backcolor to be blue, and the font to be white.
    I can get the
    >backcolor the be blue, but I can't find the way to change
    the font's
    >color.
    >Any Ideas?
    >
    >Eric
    >.
    >
    Sreejumon[MVP] Guest

  4. #3

    Default Change font color in Datagrid?

    Add under <asp:Datagrid...
    <Headerstyle Forecolor="White"
    BackColor="Blue"></Headerstyle>
    >-----Original Message-----
    >Hey All,
    > This should be easy. I jus t want the header in a
    datagrid to
    >have the backcolor to be blue, and the font to be white.
    I can get the
    >backcolor the be blue, but I can't find the way to change
    the font's
    >color.
    >Any Ideas?
    >
    >Eric
    >.
    >
    makthar 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