Author Topic: menampilkan data detail di grid  (Read 9894 times)

0 Members and 1 Guest are viewing this topic.

Offline Wili_yoni

  • Junior Member
  • *
  • Posts: 154
    • http://webku.web44.net
Re: menampilkan data detail di grid
« Reply #30 on: March 17, 2009, 05:46:33 PM »
Biar lebih rapi tampilan gridnya bisa juga pake ini

 thisform.grid.RecordSource=cursor_alias
 thisform.grid.RecordSourceType=1
 thisform.grid.ColumnCount=7
 thisform.grid.column1.controlsource="nama_field1"
 thisform.grid.column2.controlsource="nama_field2"
 thisform.grid.column3.controlsource="nama_field3"
 thisform.grid.column4.controlsource="nama_field4"
 thisform.grid.column5.controlsource="nama_field5"
 thisform.grid.column6.controlsource="nama_field6"
 thisform.grid.column7.controlsource="nama_field7"

 thisform.grid.column1.header1.caption="Nama Field ke 1"
 thisform.grid.column2.header1.caption="Nama Field ke 2"
 thisform.grid.column3.header1.caption="Nama Field ke 3"
 thisform.grid.column4.header1.caption="Nama Field ke 4"
 thisform.grid.column5.header1.caption="Nama Field ke 5"
 thisform.grid.column6.header1.caption="Nama Field ke 6"
 thisform.grid.column7.header1.caption="Nama Field ke 7"

 thisform.grid.column1.width=84
 thisform.grid.column2.width=63
 thisform.grid.column3.width=80
 thisform.grid.column4.width=100
 thisform.grid.column5.width=100
 thisform.grid.column6.width=100
 thisform.grid.column7.width=100

thisform.grid.ReadOnly= .T.
thisform.grid.view=0
thisform.grid.Enabled=.t.   
thisform.grid.Refresh()


ColumnCount tergantung kebutuhan dan penempatan field bisa kita lakukan di column1.controlsource


selamat mencoba.....
lebih hebat lagi kalo' punya Janus GridEX 2000. jadi data yang ada digrid bisa kita grouping atau kita sort  :icon_salut:

Offline vforeverp

  • Junior Member
  • *
  • Posts: 133
Re: menampilkan data detail di grid
« Reply #31 on: March 26, 2009, 12:15:51 PM »
terima kasih bnyq buat semua-a yg dah berbagi ilmu, smoga ilmu-a dpt bertambah...
ternyata bnyq postingan bkn hnya topik-a yg menarik, tapi krna ga ngerti2....!!!!
saya coba pelajari...klo dah mentoq saya hrp senior2 masih bersedia membantu....
se-x lg thanx....very much....