I have 2 models with properties. I get an error when changing the datasource
I assign them in the following way:
CardView1.DataSource = BindingList<Model1>
CardView1.Datasource = BindingList2>Model2>
When i swap the datasource i get the following error: "There is no property descriptor corresponding to property name: Code"
"Code" is a property only present in the first model (Model1).
Seems like i have to reset some properties before swapping datasource? i already tried CardView1.DataSource = null before assigning Model2 but got same error