Columns in TableView [message #459774] |
Tue, 16 August 2005 07:36  |
Eclipse User |
|
|
|
Hi all!!!
I have a TableViewer with 2 columns, for example, "name" and "value".
I want the columns to fill all the space of the viewer. I'll try to
explain what I mean
Viewer should have a row of column headers like "name" | "value" |
"name" | "value" .. (k times) .. "name" | "value" . "k" will depend on
the viewer width and each column will continue tne previous one.
Has Table Viewer properties or something else that allow to do that?
Igor S. Zamyatin
JSC Interstron
http://www.interstron.ru
|
|
|
Re: Columns in TableView [message #459779 is a reply to message #459774] |
Tue, 16 August 2005 10:15   |
Eclipse User |
|
|
|
Hi Igor,
Assuming that I understand your question correctly, no, table items can only
flow top-to-bottom.
If you are in a read-only context then you could fake this by, for example,
showing 4 name/value pairs per TableItem (so for TableItem 0, name/value
pair 0 would occupy columns 0 and 1, name/value pair 1 would occupy columns
2 and 3, etc). However this would not make sense if your user can select
items in the table, since selection is on a per-TableItem basis, not
per-cell.
Grant
"Igor S. Zamyatin" <isz@interstron.ru> wrote in message
news:c7784e62cab1dcf5b9aaaadf6c8100b7$1@www.eclipse.org...
>
> Hi all!!!
>
> I have a TableViewer with 2 columns, for example, "name" and "value".
> I want the columns to fill all the space of the viewer. I'll try to
> explain what I mean
>
> Viewer should have a row of column headers like "name" | "value" |
> "name" | "value" .. (k times) .. "name" | "value" . "k" will depend on
> the viewer width and each column will continue tne previous one.
>
> Has Table Viewer properties or something else that allow to do that?
>
> Igor S. Zamyatin
> JSC Interstron
> http://www.interstron.ru
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04028 seconds