Is a bug (Text Property of Combobox)?

  • Thread starter Thread starter Wagner
  • Start date Start date
W

Wagner

Hello,

Today, i was trying to get de .Text property of a ComboBox, when the user
select a item.

But, several times, the Text Property of the cmbCountry was returning
"System.Data.DataRowView", instead of the Country Name.

Is it a bug of .Net?
Or i am doing some thing wrong?

Thanks, and sorry by my english.
 
Hello Wagner,

This sounds like you may not have set the DisplayMember or ValueMember property.
 
Matt Berther said:
Hello Wagner,

This sounds like you may not have set the DisplayMember or ValueMember property.

But i "seted" it, and on selectedIndexChanged, some times the Text return
wrong.
 
Back
Top