I want to enumerate the cells in my datagrid and specify different
background colours for each cell depending on its contents. Is this
possible? There are no properties for DataGrid.Item(Index, Index)...

RE: DataGrid - Background colours? by Bala

Bala
Wed Oct 20 06:05:03 CDT 2004

hi,

create a datagrid text column
style, in the paint method you can change the background colors..

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/wnf_custdatagrid.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchformattingwindowsformsdatagridvisualbasicprimer.asp

"Chris Ashley" wrote:

> I want to enumerate the cells in my datagrid and specify different
> background colours for each cell depending on its contents. Is this
> possible? There are no properties for DataGrid.Item(Index, Index)...
>
>
>

Re: DataGrid - Background colours? by Herfried

Herfried
Wed Oct 20 06:25:30 CDT 2004

"Chris Ashley" <chris.ashley@SPAMblueyonder.co.uk> schrieb:
>I want to enumerate the cells in my datagrid and specify different
>background colours for each cell depending on its contents.

5.14 How do I color a individual cell depending upon its value or some
external method?
<URL:http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q745q>

5.67 How can I change the font used in a grid cell on a cell by cell or row
by row basis?
<URL:http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q927q>

Changing the background color of cells in a DataGrid
<URL:http://www.codeproject.com/csharp/custom_datagridcolumnstyl.asp>

<URL:http://www.google.de/groups?selm=avm8j6%24guusa%241%40ID-117757.news.dfncis.de>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>