[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: TableViewer with 1000 of lines

Leonhard Holzer wrote:
I want to use a TableViewer class but i have to display 1000 of rows (it
is the resultset of an select statement on a database). Naturally I don't
want to return all rows at once, but only the displayed ones. Has anyone
already a solution for this problem?

Thanks
  leonhard

- use a table with style SWT.VIRTUAL.
- your ContentProvider must implement ILazyContentProvider
- you call tableViewer.setItemCount(int) instead of tableViewer.setInput(Object)