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;
switch(value)
{
case NoYes::Yes :
_options.backColor(WinAPI::RGB2int(255,0,0));
break;
case NoYes::No :
_options.backColor(WinAPI::RGB2int(255,255,255));
}
//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:
Post a Comment