Serious Problem or Serious Misunderstanding
Suppose we have a grid called obj with one column with the following data:
| 23.12 |
| 14.35 |
| 17.20 |
| 0.00 |
On first loading the grid if do obj.getCellText(0,0) then we get 23.12.
After sorting the column obj.getCellText(0,0) still returns 23.12.
So if we do obj.getCellText(0,getRowIndices()[0]) then we get the value for the top row 0.00. But if we do obj.getCellText(getRowIndex()[0]) the first time, we get the wrong value.
Simply put: Before sorting we must call getCellText(0,0) to get the correct value. After sorting we must call getCellText(0,getRowIndices()[0]) to get the correct value.
Is there a way to re-order the indices after sorting so that
getCellText(0,0) always return whatever appears in the top row (or whatever row we are looking for?
| 23.12 |
| 14.35 |
| 17.20 |
| 0.00 |
On first loading the grid if do obj.getCellText(0,0) then we get 23.12.
After sorting the column obj.getCellText(0,0) still returns 23.12.
So if we do obj.getCellText(0,getRowIndices()[0]) then we get the value for the top row 0.00. But if we do obj.getCellText(getRowIndex()[0]) the first time, we get the wrong value.
Simply put: Before sorting we must call getCellText(0,0) to get the correct value. After sorting we must call getCellText(0,getRowIndices()[0]) to get the correct value.
Is there a way to re-order the indices after sorting so that
getCellText(0,0) always return whatever appears in the top row (or whatever row we are looking for?
Eric Juvet
May 10,