List Info

Thread: Is it possible to have text be two colors in a DataGrid cell?




Is it possible to have text be two colors in a DataGrid cell?
user name
2007-12-28 07:54:46
I am using a StringBuilder to populate the text in the cell,
but
haven't had any success with changing colors. Any ideas?

Thanks for any help.

-Rob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Is it possible to have text be two colors in a DataGrid cell?
user name
2008-01-02 10:37:30
I'm sure in the ItemDataBound event you can surround the
words with
different styles

ex.

<span class="text_type_1">One
Color</span>&nbsp;<span
class="text_type_2">Yet another
color</span>

On Dec 28 2007, 7:54 am, robh <helm...gmail.com> wrote:
> I am using a StringBuilder to populate the text in the
cell, but
> haven't had any success with changing colors. Any
ideas?
>
> Thanks for any help.
>
> -Rob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )