ComboBox's Selected Value Changed On Lost Focus in VB.NET
Posted
by tunwn
on Stack Overflow
See other posts from Stack Overflow
or by tunwn
Published on 2009-10-12T17:28:31Z
Indexed on
2010/05/10
20:04 UTC
Read the original article
Hit count: 418
I have a datagridview(dgv) with a DataGridViewComboBoxColumn(colLocation)
colLocation.AutoComplete = False
colLocation.HeaderText = "Stored to"
colLocation.DataSource = DB.getLocation()
colLocation.DisplayMember = "description"
colLocation.ValueMember = "id"
I added the colLocation to dgv.
"descirption" contains Unicode characters. I can see the comboBox correctly and choose the item.
The problem is when the comboBox lost the focus, the value is changed to first item of the comboBox.
Any suggestion?
Updated:
I found out that the ComboBox doesn't change the data when the DisplayMember is in English characters.
It changes only when the DisplayMember is in Unicode chracter. Any idea for how could solve this? – tunwn 0 secs ago
© Stack Overflow or respective owner