在窗体上放上DBGrid和DBComboBox,DBComboBox.Visible:= False;
procedure TForm1.DBGrid1DrawDatacell(Sender:Tobject;Const Rect:TRect;Field;TField;State:TGridDrawState);
begin
if (Field.fieldname=DBComboBox1.dataField)then
begin
dbcombobox1.left:=Rect.left+dbgrid1.left;
dbcombobox1.top:= Rect.top+dbgrid1.top
dbcombobox1.width:= Rect.right-rect.left;
dbcombobox1.visible:=True;
end;
end;