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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top