HighTechTalks DotNet Forums  

DataGrid Cell Color

Dotnet General Discussions microsoft.public.dotnet.general


Discuss DataGrid Cell Color in the Dotnet General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Kyle
 
Posts: n/a

Default DataGrid Cell Color - 08-25-2005 , 07:33 AM






Hello;

I'm using a datagrid bound to a dataset. The background of the datagrid is
white. I'd like to have the data in one column only be one of three colors.
(RED, GREEN, BLUE) depending on one of three values that the data in that
cell could be.

Any ideas on how to do this?

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: DataGrid Cell Color - 08-25-2005 , 03:23 PM






Attatch an event to ItemDataBound and you should be able to control the
look of each row and subsequently each cell as the data is proccessed
for the dataset.

-Bryan


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.