Basically, just add the class of "selected" to the row you want to add the border to. Then add the class "first_col" to the first <td> and "last_col" to the last <td> to render the left and right borders.