- Guillermo Pereira
- PowerBuilder
- Thursday, 11 March 2021 10:39 PM UTC
Hi Guys, I am using PB 2017 R3
I have a grid DataWindow with a DropDownDataWindow. Depending on the selection, I should hide or display a couple columns.
The issue is: When I try to show them back again, the columns lost the original position and they are displayed at the very right side.
My grid datawindow Column list is:
"status(dddw)| code | first_name | last_name | BirthDate | Gender | Address | Phone"
dw_1.Itemchanged (event)
The code is:
ls_col_name = GetColumnName( )
CHOOSE CASE ls_col_name
CASE "status"
il_value = LONG( data )
IF il_value = "Inactive" THEN
dw_1.modify("BirthDate.visible = '0'")
dw_1.modify("Gender.visible = '0'")
ELSE // active
dw_1.modify("BirthDate.visible = '1'")
dw_1.modify("BirthDate.visible = '1'")
END IF
CASE...
END CHOOSE
After selecting "active" the columns comes back, but after the last column (Phone)
"status(dddw)| code | first_name | last_name | Address | Phone | BirthDate | Gender "
Any idea why is this happening? any solution?
Thanks,
GP
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.