Focal Point
[CLOSED] Coloring cells of Read/Write Grid in maintain

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9067060516

January 04, 2012, 11:32 PM
Shankar
[CLOSED] Coloring cells of Read/Write Grid in maintain
Hi,
I have a requirement in Maintain where I have to color the cells of a Read/Write Grid based on the value of a column.Suppose using CAR datasource,Iam dispalying COuntry,Car and Model in a Read/Write grid.I want one more column in the Grid which will have their cells colored based on the value of BODYTYPE.Ex: If the BODYTYPE is CONVERTIBLE, then the color of cell would be green,if it is SEDAN the color would be Red and so on.How can i handle this in maintain? Please suggest.

Thanks in Advance.

This message has been edited. Last edited by: Kerry,


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
January 05, 2012, 08:42 AM
Maintain Wizard
There are two grid controls in 7.7. I hope that you are using the grid with the JS logo. That is more versatile than the Active-X grid as the JS grid can work on browsers other than ie. In the JS Grid you can use JS commands to manipulate the display.

The following statement to change the color of the cell:
CellSetBackColor(col, row, color)
Form1.Grid1.CellSetBackColor(1,1,”rgb(0,0,255)”);

You can check the value of a cell by using this statement:
CellGetText(col, row)

Once you have the value, you can issue the commands to set the color of the cells.

Mark