procedure TForm1.FormCreate(Sender: TObject);
begin
ComboBox1.Parent := StringGrid1;
ComboBox1.Visible := False;
StringGrid1.Options := StringGrid1.Options + [goRowSelect];
end;
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
var
ARect : TRect;
begin
if (State = [gdSelected]) and (Screen.ActiveControl = StringGrid1) then
begin
ComboBox1.Visible := True;
ARect := StringGrid1.CellRect(1, ARow);
ComboBox1.SetBounds(ARect.Left, ARect.Top, ARect.Right-ARect.Left, ARect.Bottom);
end;
end;