Evening,
I attached, in code a dataview to the the combobox.
strSQLCMD = My.Settings.SQLCMD_FillIn_getSalesGrpsNRepsDim dvRepGrps As New Data.DataViewdvRepGrps = 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 = TrueEnd 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
Got it.
Delete the object and put it back on the form.
Popup appeared. Should have tried that first.
thanks for the help though.
I am begining to think I have missed something every simple with this control.
I did connect the dv to a wingrid and the data was there on the form.
I also noticed that on another grid where I have combo box editors i am also not getting the drop down lists to appear. Instead I get a blank rectangle of a couple of pixels in height.
Well, that is a puzzle.
Just as a test, what if you trying binding some other control to the same dataview, such as the WinGrid or even the DataGridView control. Do any of those show any data?
What about the Microsoft ComboBox control, does it work?
Thanks for your reply.
The drop down itself actual does not even drop down. I get nothign when I try clicking on the dropdown btn. Control is enabled and the parrent control also is enabled.
I am not setting the datamember.
Yes its on a window form. Actually the parent control is a ultratabpagecontrol.
I droped the combo on the control on the form, renamed it. then in the codebehind I run the code in my example. The dataview has data, can see that in the watch view.
When i get to the END WITH in debugging I can see the control has the data in it thru the watch window again.
But on the form clicking on the dropdown btn gives me nothing. Not even a blank grid.
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.