Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1825
WinCombox ver 10.2
posted

Evening,

I attached, in code a dataview to the the combobox.

strSQLCMD = My.Settings.SQLCMD_FillIn_getSalesGrpsNReps
Dim dvRepGrps As New Data.DataView
dvRepGrps = My.Forms.frmMain.objTools.DBgetDataView("TBL_Info", strSQLCMD, strWhoAmI, , My.Forms.frmMain.msUserName)
With .uwCombo_Ord_AR_SalesID
  .DataSource = dvRepGrps
  .DisplayMember = "Sales Group"
  .ValueMember = "ID"
  .DataBind()
  .Enabled = True
End With

I can see the object has the values in the watch window.

But when I click on the drop down btn I get no list of data appearing!

No drop down grid appears. Watched you video example and seems simple enough. But i am doing this thru code.

Should be 3 columns of data in the drop down.

what am I not setting correclty?

Help!

Thanks

Deasun

 

Parents
  • 469350
    Offline posted

    Hi Deasun,

    I can't see anything wrong with this code. If the dropdown is completely empty, it usually means that there's no data in the data source, but you said that is not the case.

    The call you have here to the DataBind method is redundant, but at worst, it would cause some inefficiency in your code, it would not make the data fail to display.

    Are you setting the DataMember of your UltraCombo? If it is set to anything, then the combo would end up failing to find the correct table, since a DataView only has a single table.

    I assume since you said that you can drop down the combo that it is actually on a form.

Reply Children