Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic colors in grid rows
Message
From
23/06/2004 20:54:35
 
 
To
23/06/2004 17:38:59
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00916648
Message ID:
00916687
Views:
20
I'm developing an interface that uses a grid to display different sets of items. I need to be able to take a column in the dataset and use it to determine the color to display that row on the grid, e.g. if colomn "color_code" = 1 then the row of the grid containing that data is displayed in red.

Hi, Rick,

Here's a link that may help.

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp

Examples 5.14 and 5.67 have some sample code for doing this (setting the colors/fonts dynamically). Personally, I like 5.67 better.

Some of the third party grids (like Syncfusion's EssentialGrid) do this more elegantly, but it can be done with the native Winforms datagrid.

Hope this helps...
Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform