Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing font and color dynamically in a grid
Message
De
31/12/2002 10:12:56
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Changing font and color dynamically in a grid
Divers
Thread ID:
00736947
Message ID:
00736947
Vues:
48
In Visual FoxPro, a developer had the ability to set the foreground/background color and font attributes dynamically for any cell in a grid, based on a runtime condition. There were actually properties called...

Grid.DynamicForecolor = 'IIF(,'RED','BLUE')
Grid.DynamicForeBold = 'IIF(,.t.,.f.)

It was very powerful for our UI. I'm trying to do the same thing with a WinForms datagrid, and have been having some problems. You have to write a fair amount of code to do this.

I pulled down different code samples on SYNCFUSION [in their WinForms FAQ section]. Each sample provides some of the functionality, but not all of it. One code sample actually provided all the capabilities, but then I could no longer access the column ALIGNMENT property, which I use to right-justify numeric fields.

Has anyone tried this? Is there a 3rd party grid column style that will do this?

Thanks,
Kevin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform