To highlight certain rows of the displayed founset

Hi All ,
I am using table view to get the foundset displayed . Now I have to highlght some rows of the foundset with any color . but not the total records . any one please help …

Thanks in advance …

You can set rowBGColorCalculation in form properties :
Next code sets selected record to specified color and also alternates
the color on odd/even rows

var index = arguments[0];
var selected = arguments[1];
if (selected) //selected row
{
return "#ccffcc";
}
else
{
if (index % 2 == 0) //alternate even/odd
{
return "#ffffff";
}
else
{
return "#cccccc";
}
}

put this code in a calculated field.

this can easely be changed to highlight rows depending on the value of a column in the current table :

var index = arguments[0];
var selected = arguments[1];
if (site_code =='CAST')
{
return "#ccffcc";
}
else
{
return "#cccccc";
}

This is explained in the Servoy Developer Users Guide on pages
191 - 193.

Regards

Thanks Hans Nieuwenhuis