* this method provides the colored cells for the grdStages * they match the colors of the pages from the stack ticket lparameter pnRecno do case case ( pnRecno = 1 ) && Yard return rgb( 255, 255, 255 ) case ( pnRecno = 2 ) && Pre Dryer return rgb( 255, 255, 0 ) case ( pnRecno = 3 ) && Kiln return rgb( 255, 128, 255 ) case ( pnRecno = 4 ) && Cooling Shed return rgb( 255, 128, 0 ) case ( pnRecno = 5 ) && Plant return rgb( 255, 255, 164 ) otherwise return rgb( 192, 192, 192 ) endcase>I have a grid I need to have many different row colors based on the value of a field. Easy enough using an IIF in the DynamicBackColor property. However, I need to check for about 15 different values. Obviously, I can't nest IIF's this deep. My next idea was to created a method in the grid class which returns the proper color, but this doesn't seem to work either.