How to find out whether a cell has a border?

Using the onValidationError event, I’m setting a red border on the cell using the setCellTextStyle method. I’m also disabling a button.

However, in the onValidationCorrect event, I need to test to see whether the cell still has the border applied, but there doesn’t seem to be any sort of getCellTextStyle method. Any ideas on how I can check to see whether the cell has a border?

Even better would be if someone could tell me how to add a class, remove a class and check to see whether a class is applied to the cell.

I thought the following would do it, but alas, no:

var cellObj = grid.cells(RowId, ColIndex).cell;
cell.className+='dhtmlx_live_validation_error';

cell.className=cell.className.replace(/[ ]*dhtmlx_validation_error/g,"");

If(cell.className.indexOf('dhtmlx_validation_error')!=-1){ }

Well, I don’t know what I was doing before, but the code above is working now!