Just in case you haven't figured it out yet, here's the code of my test:
First, declare an instance variable:
boolean ib_dropdownopen=false integer ii_dwc_row
In the user event mapped to pbm_dwndropdown:
datawindowchild dwc This.GetChild('col_name',dwc) ii_dwc_row = dwc.GetSelectedRow(0) If IsNull(ii_dwc_row) Then ii_dwc_row = 0 End If ib_dropdownopen=true
In the user event mapped to pbm_erasebkgnd:
integer li_row datawindowchild dwc If ib_dropdownopen Then This.GetChild('col_name',dwc) li_row = dwc.GetSelectedRow(0) If ii_dwc_row <> li_row THen // A data has been selected for the column from the dddw. // The data is not in the DW buffer yet until you tab out or accepttext End If ib_dropdownopen = false End If
HTH,
Neil