How do I resolve this error in VB,net
system.runtime.serialization.serializationexception: Type 'system.xml.linq.xelement' in Assembly 'system.xml.linq, version=4.0.0.0, culture=neutral, publickey=b77a5c561934e089' is not marked as serializable
I create a Grid that inherits from DataGridView. Oone of the Grid's properties is:
Public Property RowsXMLRegister As List(Of XElement)
Get
Return m_AllRowsXMLRegister
End Get
Set(value As List(Of XElement))
m_AllRowsXMLRegister = value
End Set End
Property
When I try placing the Grid on the form the error comes up.