Public void displayoption (Common _ record, formrowdisplayoption _ options)
{
Gridcolours gridcolourslocal = _ record;
;
Super (_ record, _ options );
// If highlight flag is set, then give the entire row a black background/white text
If (gridcolourslocal. highlight)
{< br> _ options. backcolor (winapi: rgb2int (255,255, 0); // yellow
}< br> else
{< br> If (gridcolourslocal. requesteddate gridcolourslocal. requesteddate)
{< br> _ options. backcolor (winapi: rgb2int (255, 0, 0); // red
_ options. textcolor (winapi: rgb2int (255,255,255); // white text
If (gridcolourslocal. requesteddate {< br> // applies only to the requesteddate field on the grid
_ options. affectedelementsbycontrol (grid_requesteddate.id ();
}
If (gridcolourslocal. confirmeddate> gridcolourslocal. requesteddate)
{
// Applies only to the requesteddate field on the grid
_ Options. affectedelementsbycontrol (grid_confirmeddate.id ());
}
}
}
}