Reputation: 579
By default tableview
have at least 15 rows. So if I have 10 elements in my table then 5 rows will be empty.
How can I remove such rows(not fill up it by white color through CSS)?
Upvotes: 4
Views: 7453
Reputation: 36792
You can do this. There is no public API present to call the visibleRowCount
in TableView
.
But, @kleopatra has created a very nice implementation of TableView called as TableViewWithVisibleRowCount
, which has a visibleRowCount
and you can play with it. You can check it out here.
Since you don't need css implenetation, I am not including them here.
N.B. - They could be found here.
Upvotes: 3