Hello Karthik,
Click on the DATA sub form of the table. Write the below JavaScript in the Initialize event of DATA sub form.
I think the sub total row contains XBLNR and BLDAT as blank.
So write the code as below.
if (( this.XBLNR.rawvalue == null ) && ( this.BLDAT.rawvalue == null ))
{
this.border.fill.color.value = "200,200,200";
}