Professional Web Applications Themes

Change font color in Datagrid? - ASP.NET General

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!...

  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. #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

  3. #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

Similar Threads

  1. HELP! I'm a new user - How do I change a font's color in Illustrator?
    By officewerker@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 14
    Last Post: September 11th, 03:12 PM
  2. How to change the font, the font size, and color text
    By David_Gopois@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: October 29th, 03:47 AM
  3. font, font size, background color preferences
    By Jim_Slim@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: July 10th, 02:37 PM
  4. How do you change the vertical grid line color of the header in a datagrid???
    By Ospinto in forum Macromedia Flex General Discussion
    Replies: 4
    Last Post: September 13th, 06:23 PM
  5. How to change the color of the modified fields in a Datagrid?
    By Learner in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: August 27th, 09:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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