Search code examples
gwtcountrowscelltable

In gwt , what is the simplest code to count total of rows in a celltable?


Given:

CellTable<List<String>> table = new CellTable<List<String>>();
ListDataProvider<List<String>> dataProvider = new ListDataProvider<List<String>>();
dataProvider.addDataDisplay(table);
List<List<String>> list = dataProvider.getList();

what is the simplest code to count total of rows in a celltable?


Solution

  • if getRowCount not working , why dont you try to get the size of the array u have , you must be pushing some array in the celltable , why don't just get the size of array ..