-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto Post2 query di satu report(1)
 by kepiss
 on 04.Feb at 18:25
goto PostLowongan Kerja IT Coordinator(2)
 by madi
 on 02.Feb at 15:05
goto Postaccess ke foxpro(0)
 by idhiel
 on 02.Feb at 14:29
goto PostASK: TMS TAdvColumnGrid(0)
 by batozai
 on 02.Feb at 14:03
goto Post[ask] buat funtion dengan nilai return berupa record(0)
 by irosyidi
 on 02.Feb at 11:29
goto Posttanya inno setup mentog(5)
 by jowo
 on 01.Feb at 13:11
goto PostMembuat executable Delphi 2009 + dbExpress(0)
 by zuq
 on 01.Feb at 11:41
goto PostKapan ya delphi-id bikin jaket lagi....??(41)
 by sidiq_himura
 on 31.Jan at 17:02
goto PostuniGUI, bikin aplikasi web pakai delphi as easy as ABC(18)
 by R-One
 on 22.Jan at 19:45
goto PostAba(d)ikan: Tempat (wc) umum orang ngaco dan o-on Versi 2(132)
 by asiyrob
 on 20.Jan at 09:53
goto Postkomponen delphi 7(6)
 by idhiel
 on 19.Jan at 18:41
goto Post[HELP] Fungsi komponen DataModule and IBQuery...(0)
 by binyo
 on 19.Jan at 15:43
goto PostKenapa Firebird tidak AutoCommit ????(27)
 by binyo
 on 19.Jan at 15:30
goto Post[ HELP ] Pencerahan tentang database yang sering digunakan.(9)
 by binyo
 on 19.Jan at 15:08

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
5 months, 1 week ago
RE: belajar pascal
5 months, 1 week ago
RE: The Longue
5 months, 1 week ago
RE: belajar pascal
5 months, 1 week ago
RE: Perkenalan dan Absen
5 months, 1 week ago
RE: Alhamdulillah Buka Puasa Bersama
5 months, 1 week ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
5 months, 1 week ago
Lintas Situs
Feeds -  Popular -  Latest
TSafeMe… BindMe
10 months, 3 weeks ago
TSafeMe… BindMe
10 months, 3 weeks ago
TSafeMe… BindMe
10 months, 3 weeks ago
TSafeMe… BindMe
10 months, 3 weeks ago
PowerLogic SDK
1 year ago
Game/Physics Engine Theory: Subtraction-based Geometry Destruction Transformation (Part 1)
2 months, 4 weeks ago
WMI Tasks using Delphi – Processes
2 months, 4 weeks ago
Memory leaks on OS X
2 months, 4 weeks ago
47 on November 7th, 2011
3 months ago
WMI Tasks using Delphi – Printers and Printing
3 months ago
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
aliexdsgOffline
Location:
Post subject: Tanya cara input dari dbgrid ke stringgrid atau yang lainnya  PostPosted: 02/Sep/2010 10:48
onConfident


Joined: 03-Aug-2009
Posts: 23

Status: Offline
Para Delphier...
Saya ingin bertanya...
untuk mengambil data dari salah satu kolom dbGrid bagaimana ya?
karena saya kebingungan untuk menentukan letak data secara spesifik,, tidak seperti stringgrid bisa langsung ke kolom dan baris,
misalkan saya punya tabel dbgrid
==============================
No | Data | Keterangan
==============================
1 | .. |
2 | .. |
3 | x |
4 | .. |
5 | .. |
==============================
saya ingin mengambil nilai 'x' pada kolom 'data' baris ke '3' untuk dimasukkan ke stringgrid, tanpa harus mengklik pada dbgrid
bagaimana ya caranya?
 
 View user's profile Send private message  
Reply with quote Back to top
budi_slemanOffline
Location:
Post subject: Re: Tanya cara input dari dbgrid ke stringgrid atau yang lai  PostPosted: 05/Sep/2010 09:00
onConfident


Joined: 24-Dec-2009
Posts: 22

Status: Offline
      aliexdsg wrote:
Para Delphier...
Saya ingin bertanya...
untuk mengambil data dari salah satu kolom dbGrid bagaimana ya?
karena saya kebingungan untuk menentukan letak data secara spesifik,, tidak seperti stringgrid bisa langsung ke kolom dan baris,
misalkan saya punya tabel dbgrid
==============================
No | Data | Keterangan
==============================
1 | .. |
2 | .. |
3 | x |
4 | .. |
5 | .. |
==============================
saya ingin mengambil nilai 'x' pada kolom 'data' baris ke '3' untuk dimasukkan ke stringgrid, tanpa harus mengklik pada dbgrid
bagaimana ya caranya?


pertama tetapkan prosedurnya mau onshow atau yang lain

procedure ........

begin

stringgrid.Cells[2,2]:=dbgrid.cells[1,3];
end;

maaf kalau salah, soalnya dah lama nggak make Delphi
 
 View user's profile Send private message  
Reply with quote Back to top
heriy4nt0Offline
Location:
Post subject: Re: Tanya cara input dari dbgrid ke stringgrid atau yang lai  PostPosted: 13/Sep/2010 01:54
onKnowledgeable


Joined: 25-Jul-2008
Posts: 145

Status: Offline
dbgrid tidak memiliki property Cells, jadi gunakan datasource nya --> misal dari AdoQuery1 :

AdoQuery1.RecNo :=3;
Stringgrid1.Cells[1,3] := AdoQuery1.Findfield('data').asstring;
 
 View user's profile Send private message  
Reply with quote Back to top
theodorusapOffline
Location:
Post subject:   PostPosted: 19/Sep/2010 10:50
onNovice


Joined: 08-Dec-2009
Posts: 9

Status: Offline
Setuju sama mas Heriy4nt0 :

dbgrid tidak memiliki property Cells, jadi gunakan datasource nya --> misal dari AdoQuery1 :

code : pascal
  1. AdoQuery1.RecNo :=3;
  2. Stringgrid1.Cells[1,3] := AdoQuery1.Findfield('data').asstring;
Parsed in 0.001 seconds, using GeSHi


Atau, jika ingin mengambil data pada baris ke-3 kolom ke-1 maka bisa dibuat seperti ini :

code : pascal
  1. dbgrid1.datasource.dataset.recNo :=3;
  2. stringgrid1.cells[1,3] := dbgrid1.columns.item[1].field.asstring;
Parsed in 0.001 seconds, using GeSHi
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 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-2009 The Zafenio Team
Credits


| Register | Lost Password ? |