Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Tableviewer hide lines at empty rows
Tableviewer hide lines at empty rows [message #540263] Tue, 15 June 2010 09:37 Go to next message
lukas is currently offline lukas
Messages: 4
Registered: June 2010
Junior Member
Hello all,

I have a tableviewer with the following settings:
		table.setHeaderVisible(true);
		table.setLinesVisible(true);

This will show my table-grid - now my question is, is it possible to hide the grid-lines if a row is empty?
My plan is, to make a table with some rows. But the empty rows in the end of my table and the empty columns right off it, should be free of grid-lines and just be empty.

Thanks for your help.



[Updated on: Wed, 16 June 2010 02:13]

Report message to a moderator

Re: Tableviewer Hide empty Rows [message #541358 is a reply to message #540263] Sun, 20 June 2010 08:29 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Lukas,

This is only a problem when the total rows do not fit in the container. I
think you can use a layoutmanager or otherwise the resize methods to make the
table not bigger than the amount of rows it contains.

--

Best Regards,
Wim Jongman
-- Press any key to continue or any other key to quit...
(Eclipse Old Skool
Quote Service)

> Hello all,
>
> I have a tableviewer with the following settings:
> table.setHeaderVisible(true);
> table.setLinesVisible(true);
> Now my question is, is it possible to hide these lines if a row is empty?
> My plan is, to make a table with some rows. But the empty space under my
table and right off it, should be free of lines and just be empty.
>
> Thanks for your help.
>
> Ps: I Hope you understand my english;) If not tell me and i will try to
explain it in other words.
Re: Tableviewer Hide empty Rows [message #541468 is a reply to message #541358] Mon, 21 June 2010 05:43 Go to previous message
lukas is currently offline lukas
Messages: 4
Registered: June 2010
Junior Member
Thank you very much Wim, i will try this.
Previous Topic:Please help, Distinguish enter key event in Editor
Next Topic:Translations work well in IDE but are missing after export
Goto Forum:
  


Current Time: Tue Sep 02 02:54:09 EDT 2014

Powered by FUDForum. Page generated in 0.02233 seconds