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: Fri Apr 19 23:47:44 GMT 2024

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

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

Back to the top