Hi,
I have a grid which inherits from ultragrid. The Datasource and DataMember are given to it at runtime in the Contrustructor.
How can I prevent the inherited class to write this information into the initializeComponent Method of the Form?
regards
Stefan
Stefan,
You might want to try using the Load event instead of the constructor. You could also check the DesignTime property of the parent form before assigning this value (i.e. by calling this.FindForm(), checking if the form is null or DesignTime is true). The reason this is being serialized is because when you create your new control on the design surface, the DataSource is set; when VS tells the grid to serialize, it will do so with all the properties that have been set.
-Matt