procedure TForm1.DBGrid1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
var gc:TGridCoord;
begin
mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0 );
mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0 );
gc:=dbgrid1.MouseCoord(x,y);
if (gc.y=tstringgrid(dbgrid1).row) then
begin
dbgrid1.Cursor:=crhandpoint;
dbgrid1.Canvas.brush.color:=dbgrid1.Color;
end
else
dbgrid1.Cursor:=crdefault;
end;