Perhaps, I do not understand your question. You asked how to retrieve the EmpID for the currently clicked row, and we answered.
If we talk about the RowIndex function, it is used to find the numeric index of the row with the specified string key. For instance, if you need to select the row with the "L003" row key in row mode, the code will look like this:
iGrid1.SetCurCell iGrid1.RowIndex("L003"), 1