Home > Delphi > Export to Text from CxGrid(Developer Express Componen)

Export to Text from CxGrid(Developer Express Componen)

dah lama pengen ngulik-ngulik, sebelum jumatam posting dulu deh. hhe

procedure TfrmUlik.cxbtnTextClick(Sender: TObject);
var
  s : string;
  i : integer;
  sl : TStringList;
begin
  sl := TStringList.Create;
  with dmDiklat.quPeserta do
  begin
    while not Eof do
    begin
      s := '';
      for i:=0 to cxGrid1DBTableView1.ItemCount-1 do
        s := s + cxGrid1DBTableView1.Columns[i].DataBinding.Field.DisplayText + ' ';
        sl.add(s);
        Next;
        Application.ProcessMessages;
    end;
  end;
    sl.SaveToFile(ExtractFilePath(Application.ExeName)+'export.txt');
    sl.Free;
end;

Categories: Delphi
  1. 12/04/2010 at 1:32 pm | #1

    hmm, ini posting tentang apa yah? fungsinya untuk apa? implementasinya gimana?

  2. 12/04/2010 at 3:36 pm | #2

    hhe.. lupa. ini contoh proses untuk mengexport data data TcxGrid yang di punyai oleh komponen DeVex.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.