Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic colors in grid rows
Message
De
23/06/2004 20:54:35
 
 
À
23/06/2004 17:38:59
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
00916648
Message ID:
00916687
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform