I have a class called "car" with - I have no ideia how to say this in english - "data members" as the following:
Public pneu As classDoor Public mat As classTire Public length As Double
And so on. All the related classes have null constructors. I have a tab control where each tab is equivalent a one of this features. The tab "Tire" with respect to "pneu", for example, has the following properties:
Public Property materialh As String() Set(value As String()) mat = value End Set Get Return mat End Get End Property Public Property diameterh As String() Set(value As String()) diam = value End Set Get Return diam End Get End Property
As you can realize the "data members" are arrays and I can resize them dynamically using "Redim". What I want to do is to display these properties on a DataGridView - BUT NOT THE ENTIRE OBJECT, JUST SOME PROPERTIES. Each row of the datagridview is one of these properties - again, not all - and the number of columns depends on another parameter I have. And everytime I change the values on cells I would like to change the value of the property on my object - something like a binding. I was able to do these two tasks separately (the binding and the need to input only some properties) using stuff like BindingSource, but never on the same time. Can someone help ? It seems simple, but I just can´t do it.