1. John Murphy
  2. PowerBuilder
  3. Saturday, 2 May 2020 21:15 PM UTC

My customer wants me to change a grid dw to show a field on a line by itself and be wider then col_1 - ala Excel.

so the data would look like

    customer, order_no

row 1 "Slimy Sales Company with a very long name", ""

row 2 "", "123456"

so I could so something width = if(order_no = '', 200, 1200) 

I have set up wide columns in the header using the foreground but I have never figured out how to do anything like this in detail.

 

 

Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Saturday, 2 May 2020 21:22 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi,

I'm not sure if I fully understand what you want to achieve, but when you set the width for a column in a grid datawindow, that width will be applied to all the rows. You cannot make it different between rows, not even using an expression in the width attribute.

Comment
  1. Miguel Leeuwe
  2. Saturday, 2 May 2020 21:24 PM UTC
You can try, using a NON-grid datawindow type like tabular.

Edit the source code of your datawindow and replace "processing=1" with "processing=0"
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 4 May 2020 17:37 PM UTC
Yep .. that is the only way. The grid DW style just won't allow you that kind of column flexibility.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.