Cita:
Empezado por ecfisa
Hola.
Se trata de desproteger la clase TStringGrid para acceder a los métodos protegidos, por ejemplo:
Código Delphi [-]
...
interface
uses ..., Grids;
type
TStringGrid = class( Grids.TStringGrid );
TForm1 = class( TForm )
StringGrid1: TStringGrid;
...
private
public
end;
var
Form1: TForm1;
implementation
...
begin
StringGrid1.DeleteColumn( StringGrid1.Col ); StringGrid1.DeleteRow( StringGrid1.Row ); end;
El las versiones de Delphi mas actuales deberás usar
Código Delphi [-]
...
uses ..., Vcl.Grids;
type
TStringGrid = class( Vcl.Grids.TStringGrid );
...
Saludos
|
Gracias Daniel por contestar.
Entiendo lo que me comentas, pero debo abrir un nuevo FORM, UNIT...es que esa parte no me queda claro.
Gracias.
P . OK...ya hice las modificaciones y ya veo la propiedad DeleteRow.
__________________
Miguel Román
Afectuoso saludo desde tierras mexicanas....un aguachile?, con unas "cetaseas" bien "muertas"?, VENTE PUES !!
Última edición por mRoman fecha: 20-07-2021 a las 23:01:37.
|