0

enter image description here

I tried to remove empty rows per page using this reference remove empty rows.

It removes empty rows on page changes but when I try to remove rows on click using this code:

datasList.remove(datasList[index]);
notifyListeners();

I want to update the state using:

setState(() {

});

of parent class but it shows error.

It removes data but not is removing row from table.

prinkpan
  • 2,117
  • 1
  • 19
  • 32

1 Answers1

0

try this one : onPageChanged: (n) {

                      if (valueResponse.length - n < rowsPerPage) {
                       setState(() {
                        rowsPerPage = tableSource.rowCount - n;

}); }

                  },
Farook
  • 1