devxlogo

Insert row drop-down datawindow

Insert row drop-down datawindow

Question:
How do I insert a row in a drop-down datawindow in PowerBuilder?

Answer:
You need to use a function of the datawindow control called GetChild. This function returns a pointer to a Child or Nested datawindow.

Once you have a handle to the child datawindow you can call InsertRow on the handle to insert your row.

DataWindowChild ldwc_DWCdw_1.GetChild( 'ColumnName', ldwc_DWC )ldwc_DWC.InsertRow( 0 )

devx-admin

Share the Post: