Subject Re: [IBO] Re: Prevent grid from getting into "edit" mode
Author Andreas Pohl
Mihai Chezan schrieb:

>>There is a way you can override an event so that it won't allow
>>this.
>
> That was the question: how?

Maybe you missed my post reg. this, so here is a repost. Try to adapt this:

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