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 )

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist