Arsip: membuat no urut di dbgrid1 bagaimana yaa?

 
user image
more 18 years ago

mully

haiii deplhiners.....gw baru belajar pake delphi. gw mau nanya 1. gimana ya membuat no urut di dbgrid....? 2. trus gimana cara nya klo gw mau menjumlah data yg tampil di dbgrid trims ya pencerehaanyaa
user image
more 18 years ago

Melon_Cry

No urut? Otomatis kan
user image
more 18 years ago

irosyidi

procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin if DataSource1.DataSet.RecNo > 0 then begin if Column.Title.Caption = 'No' then DBGrid1.Canvas.TextOut(Rect.Left + 2, Rect.Top, IntToStr(DataSource1.DataSet.RecNo)); end; end;
user image
more 18 years ago

mully

yup betul no urut otomatis....gimana bro.... trims yaa pencerahaannya oh iya....perbedaan lock type antara ltOptimistic dan ltBatchOptimistic apa sih...pengaruhnya
user image
more 17 years ago

pai_chan

bro cara jumlah data di dbgrid gmn ya??? misalnya pada baris terakhir ada jumlah total dari suatu kolom/..
user image
more 17 years ago

e_soep

kalau yg dimaksud banyaknya record...n pakai perintah sql...pakai select max bisa...
user image
more 17 years ago

dindinudin

kalau saya pakai mysql seperti ini : set @nourut=0; select @nourut := @nourut+1 AS no_urut,field1,field2.... from table1;
user image
more 17 years ago

alvonz

@mully: haiii deplhiners.....gw baru belajar pake delphi. gw mau nanya 1. gimana ya membuat no urut di dbgrid....? 2. trus gimana cara nya klo gw mau menjumlah data yg tampil di dbgrid trims ya pencerehaanyaa
1. lebih enak sih bikin no urut langsung dari databasenya sendiri jadi lumyan gak ribet, 2. untuk menjumlahkan yang tampil di dbgrid tinggal di recordcount aja, tabel yang di pakai di dbgrid tersebut. semoga dapat pencerahan
user image
more 17 years ago

bagussb

bro @mully.. kenapa tidak coba grid lain saja.. :-D banyak grid yang sudah menawarkan fasilitas ini, seperti auto number, terus summary di footer... atau bahkan grouping.. :-D
user image
more 17 years ago

alvonz

@bagussb: bro @mully.. kenapa tidak coba grid lain saja.. :-D banyak grid yang sudah menawarkan fasilitas ini, seperti auto number, terus summary di footer... atau bahkan grouping.. :-D
boleh juga tuh.... :lol: punya komponen nya gak bro
more ...
  • Pages:
  • 1
  • 2
Share to

AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now: https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com