![]() ![]() So, how to get dynamic colors (individual cells colored differently within the same column)? Well, the MS Fox Team provides us with some dynamic properties of the column object that will act on individual cells (DynamicAlignment, DynamicBackColor, DynamicCurrentControl, DynamicFontBold, DynamicFontItalic, DynamicFontName, DynamicFontOutline, DynamicFontShadow, DynamicFontSize, DynamicFontStrikeThru, DynamicFontUnderline, DynamicForeColor, and DynamicInputMask). If you set the backcolor of the Textbox1 through code to, let’s say, the color Red, then every cell shown in column1 will turn red. When the grid is refreshing or otherwise repainting it will access the backstyle for every control the columns contain, and anything you do in there will stick for the individual controls shown in the grid.Īllow me to try and clarify… let’s say you have a grid with a single column and that column contains Textbox1. If you know about this feature, then you are one of a handful. In this entry, I want to show you a little known feature of the grid control. ![]() Heck, you can have multiple controls in a column or even put a grid inside a grid, so you essentially have a row/column intersect (cell) representing many records. The things that it is capable of doing are simply amazing. Though it does possess it’s share of eccentricities, it is probably one of the most powerful and useful controls I have ever had the pleasure of working with. ![]() It is my opinion that the Visual FoxPro grid has gotten a bum rap at times. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |