Using the RDS.DataControl with the Sheridan Combo Box Control

The Sheridan combo box has two properties that can be bound to RDS.DataControl data. Just binding the combo box to RDS.DataControl doesn't automatically populate the "Text" portion, a nonbindable property that shows the currently selected item. As a result, old data may still be displayed after the Refresh method is called.

A workaround is to use code like either of the following two sample Microsoft® Visual Basic®, Scripting Edition Sub procedures. Both clear the Text property when the Refresh method is called. SSCombo is the name of the Sheridan combo box control in these examples.

Sub SSCombo_InitColumnProps()
   SSCombo.Text=""
End Sub

Sub Refresh_OnClick
   ADC1.Refresh
   SSCombo.Text=""
End Sub