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

How do I get a Databound combobox selected value

$
0
0

I have a DataGridView where one column is a databound ComboBox connected to two columns of a database, display text and value. If I change the value of the dropdown, I can get the value in ComboBox1_SelectedIndexChanged after adding a handler

AddHandler comboBox1.SelectedIndexChanged, New EventHandler(AddressOf ComboBox1_SelectedIndexChanged)

However I want the value before anyone changes it (after the bind) and I can't figure out how to get it without looking it up in the original database.

 


Viewing all articles
Browse latest Browse all 2535

Latest Images

Trending Articles



Latest Images

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