You might have meant this anyway, being that you're giving a very general example, but just in case Kalyanrajsista doesn't - it'd be better to use something semantic for the ids or classes rather than literally "row_1_col_1".
I haven't used the modules mentioned, but I'd imagine it's likely you could just count which row you're on anyway, so you could know which row you're on without that information being in the HTML anyway. What you can't know is what it means. Use class names and ids (remember ids have to be unique to the page) like "last_name" or "total_price" or whatever else is appropriate.