activeSheet.isPaintSuspended(true);
for (var row = 0; row < 25; row++) {
activeSheet.setValue(row, 0, row, GcSpread.Sheets.SheetArea.viewport);
}
var rowFilter = new GcSpread.Sheets.HideRowFilter(new GcSpread.Sheets.Range(0, 0, 25, 1));
activeSheet.rowFilter(rowFilter);
var top10Con = new GcSpread.Sheets.Top10Condition(GcSpread.Sheets.Top10ConditionType.Top, 10);
var filter = activeSheet.rowFilter();
filter.addFilterItem(0, top10Con);
filter.filter(0);
activeSheet.isPaintSuspended(false);
top10Con.reset();