My problem is this:
I have my own TDBGrid based DBGrid.
Since itβs better to see Selection in many places, I thought I set it to Create, and the property editor would save the Options property if I later set it to False. Therefore, the constructor creates it as:
constructor TMyDBGrid.Create(aOwner: TComponent); begin inherited Create(aOwner); Options := Options + [dgAlwaysShowSelection]; end;
Well, I thought that everything was fine, because I set it to True, the creation first makes it True, but on Loaded Delphi it will change it to a good value (False).
But experience has shown that this does not work now!
I do not know why.
I put my own dbgrid in Form1. The ASS option is enabled. I set it to false.
I am running the application. AND NOW, IT'S AGAIN. When I show the Option value on LOaded, I got the value True. Therefore, the value is not loaded as needed.
I do not know why this happened, but I think it is based on "Default" ??? The default value is False, so if I set it to False, then it does not save the values ββin DFM ...
So what is the possible way to store values ββwithout this effect?
Thanks for your help: dd
source share