ss
| RSS | RSS Forum | AboutUS |
Disarankan menggunakan browser selain Internet Explorer, resolusi minimal 1024x768
...
UserName:
PassWord:
     Lost?
Daftar jadi Anggota !
 


stress? deadline kelewat?
bos ngamuk? pc meledak?
masuk sini !


OpenID

(?)

e.g. myname.myhost.com


Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
LAST FORUM POSTS
goto Post[AKS] Gimana cara bikin file log(1)
 by mas_kofa
 on 09. Jan at 23:40
goto Postbackup database(2)
 by bimo_ganteng
 on 09. Jan at 18:33
goto PostCopy otomatis kedalam folder yang dbuat secara otomatis(6)
 by arjuna_1982
 on 09. Jan at 17:44
goto PostReportBuilder + Teechart Support(2)
 by wildan_m
 on 09. Jan at 13:28
goto Postcomponen menampilkan *.doc atau *.Pdf(0)
 by hafiezd
 on 09. Jan at 12:51
goto PostFormat DBEdit dengan Accesss(3)
 by LuriDarmawan
 on 09. Jan at 11:43
goto PostMohon Pertimbangan dan sarannya(12)
 by supermuam
 on 09. Jan at 08:54

[Access Forum]


Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mullyOffline
7 Post subject: membuat no urut di dbgrid1 bagaimana yaa?  PostPosted: 05-02-2007 15:34
onNovice


Joined: 30-01-2007 11:09
Posts: 12

Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
Melon_CryOffline
Post subject:   PostPosted: 05-02-2007 15:57
onSkilled


Joined: 12-01-2007 02:01
Posts: 69
Location: Jambi
Status: Offline
No urut? Otomatis kan

_________________
Herwin at
http://vemo80.wordpress.com | http://yic.wikispaces.com | |http://www.klasiber.net
Just be Smart with code
-------------------------------------------------------------------------
still looking for job vacancy with no GPA term
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
irosyidiOffline
Post subject:   PostPosted: 05-02-2007 16:22
onKnowledgeable


Joined: 07-08-2006 11:33
Posts: 141

Status: Offline
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;
 
 View user's profile Send private message  
Reply with quote Back to top
mullyOffline
Post subject:   PostPosted: 05-02-2007 16:35
onNovice


Joined: 30-01-2007 11:09
Posts: 12

Status: Offline
yup betul no urut otomatis....gimana bro....
trims yaa pencerahaannya
oh iya....perbedaan lock type antara ltOptimistic dan ltBatchOptimistic apa sih...pengaruhnya
 
 View user's profile Send private message  
Reply with quote Back to top
pai_chanOffline
Post subject:   PostPosted: 03-09-2008 13:54
onConfident


Joined: 10-08-2007 06:26
Posts: 20

Status: Offline
bro cara jumlah data di dbgrid gmn ya???
misalnya pada baris terakhir ada jumlah total dari suatu kolom/..
 
 View user's profile Send private message  
Reply with quote Back to top
e_soep
Post subject:   PostPosted: 03-09-2008 14:05
onSkilled


Joined: 19-12-2006 09:23
Posts: 67

kalau yg dimaksud banyaknya record...n pakai perintah sql...pakai select max bisa...

_________________
sebaik baiknya manusia adalah yang bisa berguna n bermanfaat bagi manusia lainnya...
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
dindinudinOffline
Post subject:   PostPosted: 03-09-2008 19:55



Joined: 09-05-2007 15:13
Posts: 1

Status: Offline
kalau saya pakai mysql seperti ini :
set @nourut=0;
select @nourut := @nourut+1 AS `no_urut`,field1,field2....
from table1;
 
 View user's profile Send private message  
Reply with quote Back to top
alvonz
Post subject: Re: membuat no urut di dbgrid1 bagaimana yaa?  PostPosted: 04-09-2008 09:21
onKnowledgeable


Joined: 24-09-2007 11:01
Posts: 203

mully wrote:
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
 
 View user's profile Send private message  
Reply with quote Back to top
bagussbOffline
Post subject: RE: Re: membuat no urut di dbgrid1 bagaimana yaa?  PostPosted: 05-09-2008 08:24
onSkilled


Joined: 02-08-2007 15:28
Posts: 107

Status: Offline
bro @mully.. kenapa tidak coba grid lain saja.. Very Happy
banyak grid yang sudah menawarkan fasilitas ini, seperti auto number,
terus summary di footer... atau bahkan grouping.. Very Happy

_________________
spider boy on action ...
 
 View user's profile Send private message  
Reply with quote Back to top
alvonz
Post subject: Re: RE: Re: membuat no urut di dbgrid1 bagaimana yaa?  PostPosted: 05-09-2008 08:56
onKnowledgeable


Joined: 24-09-2007 11:01
Posts: 203

bagussb wrote:
bro @mully.. kenapa tidak coba grid lain saja.. Very Happy
banyak grid yang sudah menawarkan fasilitas ini, seperti auto number,
terus summary di footer... atau bahkan grouping.. Very Happy


boleh juga tuh.... Laughing
punya komponen nya gak bro
 
 View user's profile Send private message  
Reply with quote Back to top
wahyu_elrahmaOffline
Post subject: RE: Re: RE: Re: membuat no urut di dbgrid1 bagaimana yaa?  PostPosted: 06-09-2008 09:49
onConfident


Joined: 26-02-2008 15:49
Posts: 25

Status: Offline
komponen yang dimaksud diatas, salah satu nextsuite. bisa dipake buat no urut secara autoincrement pada grid. coba searcing moga nemuin..
 
 View user's profile Send private message  
Reply with quote Back to top
mas_kofaOffline
Post subject: Re: membuat no urut di dbgrid1 bagaimana yaa?  PostPosted: 06-09-2008 12:23
onProfessional


Joined: 18-03-2006 12:38
Posts: 870

Status: Offline
alvonz wrote:

2. untuk menjumlahkan yang tampil di dbgrid tinggal di recordcount aja, tabel yang di pakai di dbgrid tersebut.

semoga dapat pencerahan


Setau aku RecordCount itu buat nyari banyaknya record...bukan penjumlahan dari record Very Happy

_________________
Sumber Dana : Dana Hibah | My Blog: Multiple Search Engine
Me isn't mine
Aku Ini adalah satu
Kecantikan ku adalah Kecantikan Gadis 70-an
 
 View user's profile Send private message  
Reply with quote Back to top
DeulleDo-XOffline
Post subject: RE: Re: membuat no urut di dbgrid1 bagaimana yaa?  PostPosted: 06-09-2008 13:11
onIntermediate


Joined: 18-04-2005 09:49
Posts: 44

Status: Offline
Quote:

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.


kalo aq sih biasanya untuk membuat nomor urut lebih mudah aq menggunakan dari database nya aja
sama seperti dengan alvons...... ngga mau repot.


trus untuk menjumahkan yang tampil di dbgrid, SELECT SUM(nama_field) AJA dari tabel yang berhubungan dengan dbgridnya... simple kan....
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 5 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits