Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Network:
Windows 2003 Server
>Hi,
>I set the code in the Addnew button click event.
>theBindingSource.AllowNew = false
>
>but it return an error that "Item cannot be added to a read-only or fixed-size list."
Are you sure that that is the line throwing the exception rather than the attempt to actually add an item? The documentation only mentions exceptions when setting the AllowNew property to true :http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.allownew.aspx
Précédent
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