Subject | Re: [IBO] Re: Prevent grid from getting into "edit" mode |
---|---|
Author | Andreas Pohl |
Post date | 2004-07-26T07:30:36Z |
Mihai Chezan schrieb:
To avoid editing calculated field try OnCellGainFocus event of TIB_Grid,
e.g.:
procedure TGridForm.gridCellGainFocus(Sender: TObject; ACol,
ARow: Integer);
begin
if acol=1 then begin
grid.Col:=2;
abort;
end;
end;
Now bitmap of calculated field (nr 1) is always displaying without caret.
--
Andreas
>>There is a way you can override an event so that it won't allowMaybe you missed my post reg. this, so here is a repost. Try to adapt this:
>>this.
>
> That was the question: how?
To avoid editing calculated field try OnCellGainFocus event of TIB_Grid,
e.g.:
procedure TGridForm.gridCellGainFocus(Sender: TObject; ACol,
ARow: Integer);
begin
if acol=1 then begin
grid.Col:=2;
abort;
end;
end;
Now bitmap of calculated field (nr 1) is always displaying without caret.
--
Andreas