Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Not able to left align column header
Not able to left align column header [message #1249646] Tue, 18 February 2014 13:28 Go to next message
Pradyumna Bhide is currently offline Pradyumna BhideFriend
Messages: 18
Registered: August 2013
Junior Member
Hello,

I want to left align the column headers. In order to do so I extended from DefaultNatTableStyleConfiguration and in the extended class I did this in the constructor:

 super.hAlign = HorizontalAlignmentEnum.LEFT; 

Added this new class as a configuration to the NatTable but still the column headers are being center aligned.

Am I missing something. Please help.

Thanks and regards,
Pradyumna
Re: Not able to left align column header [message #1249669 is a reply to message #1249646] Tue, 18 February 2014 13:58 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2704
Registered: July 2012
Senior Member
You are overriding the wrong style configuration. For the column header you need to override DefaultColumnHeaderStyleConfiguration.
Re: Not able to left align column header [message #1249710 is a reply to message #1249669] Tue, 18 February 2014 14:46 Go to previous message
Pradyumna Bhide is currently offline Pradyumna BhideFriend
Messages: 18
Registered: August 2013
Junior Member
Thanks Dirk.
Meanwhile I used registercolumnoverrides for cell style of column headers to achieve this.
Previous Topic:Add Filter row after freeze row
Next Topic:Text edition and new line
Goto Forum:
  


Current Time: Sat Aug 24 00:25:08 GMT 2019

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

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

Back to the top