(Gast)
n/a Beiträge
|
Re: protected symbol
18. Apr 2006, 11:45
Hallo,
so geht's:
Delphi-Quellcode:
type
TForm1 = class(TForm)
dbgrid1: TJvDBGrid;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
type
TMyGrid = class(TCustomGrid)
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure PimpMyCols(Grid: TDBGrid; FromC, ToC: Integer);
begin
TMyGrid(grid).MoveColumn(FromC, ToC);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
PimpMyCols(dbgrid1, 1,3);
end;
|
|
Zitat
|