Hola Bael_Balzac y bienvenido a los foros del Club Delphi.
En realidad el evento que has elegido para inicializar el
TStringGrid no es el mejor, mejor hubiera sido el evento
OnShow del form...
Ya que el evento
OnClick del
TStrinGrid 'generalmente' se dispara por el click del mouse pero tambien cuando:
Cita:
The user selects an item in a grid, outline, list, or combo box by pressing an arrow key.
The user presses Spacebar while a button or check box has focus.
The user presses Enter when the active form has a default button (specified by the Default property).
The user presses Esc when the active form has a cancel button (specified by the Cancel property).
The user presses the accelerator key for a button or check box. For example, if the value of the Caption property of a check box is '&Bold', the B is underlined at runtime and the OnClick event of the check box is triggered when the user presses Alt+B.
The Checked property of a radio button is set to true.
The value of the Checked property of a check box is changed.
The Click method of a menu item is called.
|
Información de la ayuda de Delphi. (
F1)
O sea que en realidad te permite editar, pero te sobreescribe lo editado al dispararse el evento
OnClick por los alguno de los motivos arriba mencionados.
Si querés salir de dudas sólo agrega esta línea al inicio del código de tu evento OnClick:
Saludos.