Skip to content

Replies

0
Jeff Staddon
Jeff Staddon answered on Jan 29, 2015 5:56 PM

The following worked for me:

MyComboBox.DisplayLayout.Bands(0).ColHeadersVisible = False

0
Jeff Staddon
Jeff Staddon answered on Feb 3, 2009 3:48 PM

Finally got it to work using the following code:

Dim tempValue As String = myPreviousValue 'changes to the object loose the selected row–save it off and restore later

MyUltraCombo.DataSource = queryDS.Tables(0) 'load the new data

'Restore the previous selection 
If tempValue <> "" Then
    For Each row As Infragistics.Win.UltraWinGrid.UltraGridRow In MyUltraCombo.Rows
        If row.Cells(0).Value.ToString = tempValue Then
            MyUltraCombo.SelectedRow = row
        End If
    Next
End If

0
Jeff Staddon
Jeff Staddon answered on Feb 2, 2009 3:57 PM

Makes sense.  What method would I use to set it?

0
Jeff Staddon
Jeff Staddon answered on Jan 30, 2009 9:03 PM

I'm running into a wierd senario.  When I set the text property it works–but it also clears all the values out of the drop-down list.  Seems I can either set the value, or have a drop-down list but not both. 🙁