How to check wheather a row is active or deleted

I have a dhtmlXGrid and the user loads the data through an interface.

I add a row to the grid as the user clicks a button. During validation I check for duplications against the grid.

The validation also includes the deleted rows ( striked-out rows ) and there arises a situvation where the user can’t enter a valid data (deleted data again) because of the validation.

I wish to know wheather we have a way to check wheather a row is deleted or active, so that i can neglect deleted rows during validation.

Thanks in advance.

I wish to know wheather we have a way to check wheather a row is deleted or active
You can check row’s userdata as
if (mygrid.getUserData(id,"!nativeeditor_status")==“deleted”) alert(“row already deleted”);