procedure TForm1.Action1Execute(Sender: TObject);
var
i, j: Integer;
s,c: string;
begin
if DBGrid1.SelectedRows.Count>0 then
with DBGrid1.DataSource.DataSet do
for i:=0 to DBGrid1.SelectedRows.Count-1 do
begin
GotoBookmark(pointer(DBGrid1.SelectedRows.Items[i]));
for j := 0 to FieldCount-1 do
begin
if (j>0) then s:=s+chr(9);
s:=s+DBGrid1.DataSource.DataSet.Fields[j].AsString;
end;
if i>0 then c:=c+chr(13)+chr(10);
c:=c+s;
s:= '';
end;
ClipBoard.AsText:=c;
end;