TableView icon indicating copy to clipboard operation
TableView copied to clipboard

Sorting changes the cell text but leaves the cell id?

Open indieshack opened this issue 5 years ago • 1 comments

OK, I think the bigger issue here is getting a reference to a cell after (for example) column sorting

Cell aCell1 = (Cell) mTableView.getAdapter().getCellItem(0, row);

The above in the onCellClicked method in TableViewListener returns the correct cell in a freshly loaded table. It's not correct after a sort and the table rows rearranged. Any solutions?

indieshack avatar May 26 '20 06:05 indieshack

Bit more information - it appears that if you filter table data and then attempt to get the value of a cell using below, it returns the value of the unfiltered data set row. mTableView.getAdapter().getCellItem(0, mTableView.getSelectedRow())).getContent()

indieshack avatar May 30 '20 04:05 indieshack