evrencoskun / TableView

TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
MIT License
3.14k stars 459 forks source link

TableViewListener , onCellLongPressed method provide wrong rowindex after delete a row #317

Open MikeSmith0504 opened 4 years ago

MikeSmith0504 commented 4 years ago

I delete row in onCellLongPressed method ,using the method parametor rowindex,code as below,

  tableview.setTableViewListener(new SimpleTableViewListener(tableview,null,(o, colindex, rowindex) ->{
               comadapter.removeRow(rowindex);      //delete a row 
   }));

the first row deleted successfully,then delete second row ,but the rowindex still the old one , this is not desired. I read all the issues list ,found save problem as #230 . is there anyone found solution? is it a bug or i made some mistake?

HOW CAN I DO?

MikeSmith0504 commented 4 years ago

I use 0.8.8 version 。 I also made an sample app, seems no way to upload