Give color to records using code in axapta


 public void displayOption(  
 Common _record,  
 FormRowDisplayOption _options)  
 {;  
 if (_record.(fieldnum(LedgerTable,BlockedInJournal)))  
 {  
 _options.backColor(WinAPI::RGB2int(255,100,100));  
 }  
 super(_record, _options);  
 }