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)?
Asked
Active
Viewed 6,949 times
4

Himanshu
- 4,327
- 16
- 31
- 39

Ivan Timoshin
- 601
- 9
- 23
-
possible duplicate of [TableView: adjust number of visible rows](http://stackoverflow.com/questions/26298337/tableview-adjust-number-of-visible-rows) – LittlePanda Apr 15 '15 at 11:17
-
See this question - http://stackoverflow.com/questions/26298337/tableview-adjust-number-of-visible-rows – LittlePanda Apr 15 '15 at 11:17
1 Answers
3
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.

Community
- 1
- 1

ItachiUchiha
- 36,135
- 10
- 122
- 176