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=18http://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.comwww.prenia.comWeblog: blogs.prenia.com/cathi