Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableViewer with 1000 of lines
TableViewer with 1000 of lines [message #453080] Wed, 30 March 2005 10:35 Go to next message
Eclipse UserFriend
Originally posted by: leonhard.holzer.gmx.net

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
Re: TableViewer with 1000 of lines [message #454589 is a reply to message #453080] Mon, 25 April 2005 09:50 Go to previous message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
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)
Previous Topic:How to show unprintable symbols (Space, CR/LF, TAB) within StyledText
Next Topic:SWT Table error on Windows 2000 Pro
Goto Forum:
  


Current Time: Thu Feb 25 19:20:26 GMT 2021

Powered by FUDForum. Page generated in 0.01505 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top