Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

ComboBox Data Binding to Database

$
0
0

I am trying to Bind a combobox to database table (REMAXCLASSIC).   I create a REMAXCLASSICdataset Capture one shows the form.  The columns contained in the table are shown on left.   The combobox is associated with agentname.  I select the combobox and expand the smart tag, then check the Use Data Bound Items which opens the DataBinding Mode.  Then I select the drop down beside Data Source and select Agents Binding Source (Agents is table included in REMAXCLASSICDataset).  Then under selected value I select agentname under AgentBinding source

When I run the solution, the information shows up correctly on the form (see Capture two).  When I try to select another agentname, I get the following error. (See capture three).

How do I wire this combobox up?

Thanks




Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>