Information générale
Catégorie:
The Mere Mortals .NET Framework
>Ali,
>
>>When I debug, I always get the type of Value object as "System.Data.DataRowView".
>
>OK, it will be set to that twice when the combo box is first bound, but once you physically select an item in the combo box, it should contain the selected value.
>
>Regards,
Although, I physically select, I get the "System.Data.DataRowView".
When I debug, I saw what you mean by twice.
I want to remember:
I set only these properties of mmCombobox:
Name : cboCustomers
BindingSource : Customer
BindingSourceDisplayMember : CompanyName
BindingSourceValueMember : CustomerID
I try to get CustomerID by selecting CompanyName in combobox.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement