General information
Category:
Coding, syntax and commands
Environment versions
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only