Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing font and color dynamically in a grid
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00736947
Message ID:
00737004
Views:
22
Hi Kevin,

Unfortunately, .NET DataGrids don't have the same builtin functionality as VFP does. Here are some links to 3rd Party DataGrids that "claim" to provide the control you are wanting. I would download the demos and play around with them:

http://componentone.com/products.aspx?ProductCode=1&ProductID=18

http://infragistics.com/products/grids.asp?sec=1


>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
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform