Aroon
Aroon

Reputation: 177

How to add row header to JFace TableViewer?

How can I add "row headers" to a Jface TableViewer?

Upvotes: 1

Views: 1691

Answers (2)

Baz
Baz

Reputation: 36904

Have a look at the Grid widget from the Nebula Project.

enter image description here

It does support "row headers".

Upvotes: 2

Waqas Ilyas
Waqas Ilyas

Reputation: 3241

A TableViewer does not by default provide this capability. But you can have a look at this snippet to achieve something similar to a row header. This example uses two tables to make the first column fixed and rest of the columns horizontally scrollable. If you do not want fixed columns than you can just use different colors for columns to achieve the look and feel of a row header.

Upvotes: 1

Related Questions