I am hoping an expert can answer this query.
I have created a simple app to REMOTE an object. The object I am remoting
(which is a collection based on a DataView of a DataTable) implements
IBindingList. It works until I try to bind the remote object to a DataGrid. I
then get the message below.
Run-time exception thrown :
System.Runtime.Serialization.SerializationExceptio n - The type
System.Windows.Forms.CurrencyManager in Assembly System.Windows.Forms,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 is not
marked as serializable.
I can manually view and amend properties in the remoted object but I want to
bind it as a DataSource.
Someone mentioned marking certain fields as <NonSerialized()> such as the
PropertyDescriptor and ListChangedEventArgs but this has had no effect.
I am not sure whether the problem stems from the remote app or the client
app at DataSource binding time.
Can you help?
Thanks.