Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Colorear una casilla de un grid
Message
From
12/12/2006 22:34:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/12/2006 17:36:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01176992
Message ID:
01177046
Views:
13
>Buenas tardes a todos:
>
>Con esta instruccion muestro un fondo rojo o verde a toda la linea de un grid segun se cumpla o no la condición
>
>
>THISFORM.GRID1.SetAll  ('DynamicBackColor',"IIF (LUNES < 50,RGB(255,0,0),RGB(0,255,0))","COLUMN")
>
>
>
>pero, ¿cómo hago para colorear solo una casilla y no toda la linea? Llevo 1 hora haciendo intentos y no soy capaz.
>
>Gracias por la ayuda
>
>Saludos cordiales
>
>Manuel Tovar
>Barranquilla - COLOMBIA

Supongo que tendrás que aplicar DynamicBackColor a un objeto Column.

SetAll() es, precisamente, para afectar a todos los objetos de un contenedor, en este caso, a todas las columnas del Grid.

O sea, algo así como (no lo probé personalmente):
ThisForm.Grid1.Column3.DynamicBackColor = ...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform