Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 11th November 2011
Braincode's Avatar
Braincode Braincode is offline
Ceriwis Addicted
 
Join Date: Nov 2011
Posts: 4,638
Rep Power: 20
Braincode mempunyai hidup yang Normal
Default [ASK]vb.net. get value from datagrid on another form (PULSA INSIDE)

Lsg aja, udah 3 hari saya pusing mikirin. krn saya belum bisa ngasih melon, saya kasih PULSA aja 10rb bagi yang bisa membantu



Saya punya 3 Form

Form 1=Parent dan 2 Form lainnya adalah Child



Pada form parent terdaoat tombol "Ubah"



Pada form child I, terdapat datagridview



Event



tombol "ubah" on click, maka akan muncul form child II yang menampilkan baris terpilih pada datagridview(yg ada di form child I)



gambarnya spt ini (klo jadi)







Udah nyoba beberapa cara salah satunya




Quote:





Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim i As Integer

Dim frm As New FormData

i = frm.DataGridView1.CurrentRow.Index

Dim edit As New FormEdit

edit.MdiParent = Me

edit.TextBoxX1 = frm.DataGridView1.Item(0, i).Value

edit.TextBoxX2 = frm.DataGridView1.Item(1, i).Value

edit.Show()

End Sub





Tapi mesti kena error







Mohon bantuannya ya teman-teman



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 01:20 AM.


no new posts