Autosize Width of Grid DataWindow columns does not work – PB Docs 2022

Autosize Width of Grid DataWindow columns does not work

Phenomenon

Autosize Width of Grid DataWindow columns does not work during
runtime.

Scenario

Create a Grid DataWindow.

Change the Width Autosize property of any column(s).

tr_010.png

Save the changes.

If you now open the Source Code of the DataWindow (Edit Source),
you will see that the property was saved.

tr_011.png

But, if you open the DataWindow again in Design View, the change
is not shown even though it is there.

tr_012.png

Workaround

  1. Change the property during runtime:

    PowerBuilder dot notation:

    Or Describe and Modify argument:

    tr_013.png

    More info here.

  2. Now the DataWindow should respect the Width AutoSize.

    tr_014.png


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x