I'm doing a Component class that inherits from DataGridView.
One thing that it does is to add a default column in the grid.
I put the code for this in the class and when I drag the control to my form
i VS2005 it appears just as expected in the designer.
The problem is that when I run the application it adds the column twice so I
get 2 columns in runtime.
The reason is that when I drag my custom control to the form it generates
code i the designer file to add a column.
Then in runtime it runs the code in the forms designer file AND the code in
my Custom class so I get 2 columns...
The problem as I see it is that the drag/drop in VS2005 creates the stuff I
want, but I do not want the code in my class to be run in runtime.
What do I do wrong?
TIA / Claes