Так ведь цвет вроде условием в датасорсе определяется:
Примерно так надо написать:
X++:
public void displayOption(Common _common, FormRowDisplayOption _options)
{
// here's the logic which derteminates the color for this row
// In this case it will random color the lines
if (set.in(common.RecId))
{
_options.backColor( backColor );
}
super(_common,_options);
}