D
Dom
I'm just playing around, to confirm my mental picture of what is
happening in CSharp. Looks like I got the wrong mental picture,
because I thought this would work.
I created a class, MyDGVR, which extends the DataGridViewRow, and just
added a little functionality by adding a property called NewProperty.
Then I did the following:
MyDGVR r = new MyDGVW (1, 2, 3);
DataGridView.Rows.Add (r);
r.NewProperty = 2;
It seems the Add method called the MyDGVW parameterless constructor.
I really wasn't expecting that. Am I going about this the right way?
Thanks, Dom
happening in CSharp. Looks like I got the wrong mental picture,
because I thought this would work.
I created a class, MyDGVR, which extends the DataGridViewRow, and just
added a little functionality by adding a property called NewProperty.
Then I did the following:
MyDGVR r = new MyDGVW (1, 2, 3);
DataGridView.Rows.Add (r);
r.NewProperty = 2;
It seems the Add method called the MyDGVW parameterless constructor.
I really wasn't expecting that. Am I going about this the right way?
Thanks, Dom