I am assuming you are using the Common Grid. If you have an image in your grid it can cause the onclick event to register that cell as “undefined”. Even something as simple as
<center>CLORO</center> in a cell will cause this as well. So, sometimes, depending on where you click in a cell, it will return the row and column ok, and sometimes not. When I want an image in a cell I use something like:
"<center><img width = 44 height=40 src='other.jpg' id='grdDepart_0_0' align=Middle></center>"
The “id=…” seems to be what allows the onclick to work correctly. I also use the following when only text is involved:
s = "grdListMenu_" & iMenuRow & "_0"