做个事件触发吧.对整个DBGrid做个循环.
选中的记录往ComboBox中插.

解决方案 »

  1.   

    而且我是在选择完了后,按下一个按纽才开始往combobox中添加的,也就是说可以取消选择的某行??
      

  2.   

    The following example copies the selected rows in a db grid to a list box.procedure TForm1.Button1Click(Sender: TObject);
    var
      i, j: Integer;
      s: string;
    begin
      if DBGrid1.SelectedRows.Count>0 then
        with DBGrid1.DataSource.DataSet do
          for i:=0 to DBGrid1.SelectedRows.Count-1 do
          begin
            GotoBook(pointer(DBGrid1.SelectedRows.Items[i]));
            for j := 0 to FieldCount-1 do
            begin          if (j>0) then s:=s+', ';
              s:=s+Fields[j].AsString;
            end;
            Listbox1.Items.Add(s);
            s:= '';
          end;
    end;看看DBGrid的帮助啊~设置DBGrid1.Option := [dgMultiSelect ]就可以多选了~~
      

  3.   

    谢谢 tikkypeng(千两狂死郎)
    你真的太伟大了....妹妹这边一定感激你了...
    ^_^