Teemu Keiski
3/2/2004 8:38:00 AM
Hi
in ItemCreated or ItemDataBound event handler
--
e.Item.Cells[0].BackColor=Color.Yellow;
--
You can do this in declarative syntax as well (of course), but you probably
pick the Color from data source?
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Sebbe" <anonymous@discussions.microsoft.com> wrote in message
news:8BDB0CC0-D809-49E4-8A76-DC6D5E894A8C@microsoft.com...
> Hi everybody,
>
> A simple question:
> How can i set the background color for a specific cell in a datagrid ?
> I'm using a dataset to fill up the web control !
>
> Thankx