# applying css to a column in a textgridsss2

**URL:** <https://techcommunity.softwareag.com/t/applying-css-to-a-column-in-a-textgridsss2/92225>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [November 24, 2009, 1:05am UTC](https://techcommunity.softwareag.com/t/applying-css-to-a-column-in-a-textgridsss2/92225 "2009-11-24T01:05:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norm](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Norm](https://techcommunity.softwareag.com/u/Norm)\
**Post date:** [November 24, 2009, 1:05am UTC](https://techcommunity.softwareag.com/t/applying-css-to-a-column-in-a-textgridsss2/92225/1 "2009-11-24T01:05:29Z")

</div>

I have columns defined in a testgridss2 that i wish to apply a mono spaced style. I have defined in the application designer on the column in the binding section a variable name to the property textstyleprop.

In my natural application, I have added the following logic:

move “font-family: Monaco, Courier, monospace;” to po\_lines\_css(#a)

Where po\_line\_css is the name of the variable defined in the application designer for the property textstyleprop.

After stowing the natural application, I can see no difference in the display of the variables.

Am I using the incorrect application designer property, or is it not possible to apply a style to column variables in a textgridss2?

Thanks for any insights.

Norm

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [November 25, 2009, 4:44pm UTC](https://techcommunity.softwareag.com/t/applying-css-to-a-column-in-a-textgridsss2/92225/2 "2009-11-25T16:44:37Z")

</div>

Hi Norm,

The textstyleprop in the textgridsss2 control works OK in my environment.  
Do you use the HTML-client or do you use SWT?

Just to be sure there is no misunderstanding: The textstyleprop changes the textstyle of the column per row. It does not change the textstyle of the column header.

This means, in your Natural Adapter you get something generated like:

```auto

1 MYSSSGRID (1:*)
2 COL1 (U) DYNAMIC
2 COL2 (U) DYNAMIC
2 COL3 (U) DYNAMIC
2 PO_LINE_CSS (U) DYNAMIC
2 SELECTED (L)
1 MYSSSGRIDINFO 
```

Different PO\_LINE\_CSS values can be specified for different rows.

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Norm](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Norm](https://techcommunity.softwareag.com/u/Norm)\
**Post date:** [November 25, 2009, 6:53pm UTC](https://techcommunity.softwareag.com/t/applying-css-to-a-column-in-a-textgridsss2/92225/3 "2009-11-25T18:53:02Z")

</div>

Christine,

I’m using the SWT client.

What values are you moving to the po\_lines\_css?

In my natural application, I move “font-family: Monaco, Courier, monospace;” to po\_lines\_css(#a) and see no impact on the display of the data.

Thanks for the help,

Norm

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [November 26, 2009, 9:25pm UTC](https://techcommunity.softwareag.com/t/applying-css-to-a-column-in-a-textgridsss2/92225/4 "2009-11-26T21:25:00Z")

</div>

Hi Norm,

Do you see the font when running the HTML-Client?

Regarding style settings there are differences between SWT and HTML client.

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/applying-css-to-a-column-in-a-textgridsss2/92225/5 "2021-04-02T14:57:47Z")

</div>


