Skip to Content
avatar image
Former Member

Centering Header text of table column group

Hi,

I am using table column group property inside a Table property. I have to center the column header text but i am not finding any appropriate property to center it. Kindly Can any one help me on this?

Thanks,

Pavan.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 20, 2014 at 07:12 AM

    Hi Pavan,

    Unfortunately, we do not have a provision for column group header alignment.

    But, I would suggest a work around solution,

    • Take a snap shot of group header cell background and edit the image with the group header text as below

        

    • Now, create the mime object in the WD component and user the mime object name for the property IMAGE SOURCE of column group caption ui element
    • The output would be as below

        

    Hope this helps you.

    Regards,

    Rama

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Did you directly entered the text in the text property of the header caption like below? If so it will not work, if not which version you are on!

      You have to bind the text to an attribute and then set the text with spaces in coding. I have tried it and it's working. here is the reference:

      before:

      After:

      Regards,

      Kiran

      hdr1.JPG (36.1 kB)
      hdr2.JPG (12.3 kB)
      hdr3.JPG (12.6 kB)
  • Aug 20, 2014 at 06:46 AM

    Hi,

    There is no property for header text to align in center. One option is bind the text to an attribute in context of type string and then set the text in WDDOINIT method by inserting some leading space.

    lv_text = '         Header '.  " give spaces as required till it appears at center.

    then bind this to the header text.

    hope this helps,

    Regards,

    Kiran

    Add comment
    10|10000 characters needed characters exceeded