Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have inherited a class from Janus GridEX control.
the default value of ColumnAutoResize is always false, so i changed it in constructor, but whenever i change it in designer of winforms, after rebuilding project, again it is changed to default value (false).
i want to have a custom control with custom default, and when i change the properties, it does not change when i rebuild my project
My code is:
C#
public partial class JanusGridBase : Janus.Windows.GridEX.GridEX
   {
       public JanusGridBase()
       {
           InitializeComponent();
           this.ColumnAutoResize = true;
       }

   }


Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jan-14 14:23pm    
If this code just compiles, you correctly modified the property in question. If it is modified at some later point, this is a problem of the quality of the library class you are using as the base. Use the debugger; and it will tell you where the property is modified. Try to modify it later and see what happens.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900