1. Luis Pesaressi
  2. PowerBuilder
  3. Friday, 9 September 2022 09:59 AM UTC

I have a DW Grid and need many column put with autosize width (3)  but not work I try the solutions

in runtime but not work too

 

I put this

dw_1.Modify("fld_desprod.Width.AutoSize='3'" )
dw_1.retrieve(ls_filtro)

NOT WORK

why...??

 

I have PB

 

thanks

 

Luis

John Fauss Accepted Answer Pending Moderation
  1. Friday, 9 September 2022 13:41 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Luis - 

A search of the Q&A turned up this:

   https://community.appeon.com/index.php/qna/q-a/autosize-width-of-grid-datawindow-columns

I hope this helps.

Best regards, John

Comment
  1. Luis Pesaressi
  2. Saturday, 10 September 2022 02:29 AM UTC
Hi, I check this, same not Work



Why...



Luis
  1. Helpful
  1. John Fauss
  2. Monday, 12 September 2022 03:10 AM UTC
Have you tried setting this option for the column(s) in the DataWIndow Painter instead of changing the property at runtime... if only to see if this works?

I echo Andreas' suggestion to post the exported DataWindow data object (please compress the .srd file into a zip file, then attach it to a new reply, so that we can extract the .srd file directly).
  1. Helpful
  1. Luis Pesaressi
  2. Tuesday, 13 September 2022 06:51 AM UTC
Hi

Both I try in Painter and runtime, not work..... I see many people with same problem





Luis
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 9 September 2022 11:41 AM UTC
  2. PowerBuilder
  3. # 2

Hi.

Try to write it like that:

dw_1.Modify("fld_desprod.Width.AutoSize=3" )

Does it works? It should...

Andreas.

Comment
  1. Luis Pesaressi
  2. Saturday, 10 September 2022 02:27 AM UTC
HI

does not work



Luis
  1. Helpful
  1. Andreas Mykonios
  2. Sunday, 11 September 2022 18:00 PM UTC
Can you post an srd with the problem?

Andreas.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.