View Full Version : [FNR][1.2.3] GridView.getCell(int,int) can return the wrong cell

29 Apr 2009, 12:49 PM
If the cell contains a table, as it does in one case for us, then getElementsByTagName("td") is insufficient for getting the appropriate columns as it fetches all td and not just the immediate children of the element.

It appears that the fix for this would be to fetch the immediate td's the same way the rows are fetched, using getChildNodes(). The following code should fix this issue.

public Element getCell(final int row, final int col) {
return (Element) getRow(row).getElementsByTagName("tr").getItem(0).getChildNodes().getItem(col);

1 May 2009, 11:26 AM
Fixed in SVN.