可以这样实现;
Var
VRow:VCol:integer;
IsClick:Boolean;
.
.
procedure TFrm_Browse.StringGrid1MouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
IsClick:=True;
end;
procedure TFrm_Browse.StringGrid1DrawCell(Sender: TObject; ACol,
ARow: Integer; Rect: TRect; State: TGridDrawState);
var
bmp:Tbitmap;
begin
if (StringGrid1.FixedRows<>0) and (IsClick=True) then
begin
if (ACol = VCol) and (ARow= VRow) then
begin
bmp := tbitmap.Create;
imagelist1.GetBitmap(0,bmp);
StringGrid1.canvas.Draw(Rect.Right-bmp.Width ,Rect.Top,bmp);
或者
StringGrid1.canvas.Draw(Rect.Left.Width ,Rect.Top,bmp);
end;
end;
end;