Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Databinding to a dropdown list in a grid not working
I have a dropdownlist in a grid in an edititemtemplate. Edits always update the first row no matter which row that you're on. Textbox fields work properly.
The field that I'm working with is cmunit in table pricedet, bizobj=Pricedet.
Here's what have set on the dropdown:
BindingSource=Pricedet
BindingValueSource=Pricedet
BindingValueSouceMember=cmunit
CustomBinding Code Expression: Bind("cmunit")
I load the list in the init with a datatable but I've tried hard coding list and the results are the same.
Thanks Bill
Suivant
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