Thursday, May 16, 2013

How change the color of entire row

We can override the displayOption() method of the form's datasource 
to change appearance of any row in the grid. U can set either the 
foreground or the background color of the row.
public void displayOption(Common _record, FormRowDisplayOption _options)
    Test  _test;//Table Name
    noyes       value;
   _test = _record;
    if(_test.SOqty > _test.POqty)        value = NoYes::Yes;     else         value = NoYes::No;
        case NoYes::Yes :
        case NoYes::No :
    //super(_record, _options);
in this case where ever saleQty is greater than PurchQty then that entire row will change to red color.maximun this color display option will help for retails forms.

No comments: