Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   [ASK]vb.net. get value from datagrid on another form (PULSA INSIDE) (https://forum.ceriwis.com/showthread.php?t=538855)

Braincode 11th November 2011 02:11 PM

[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)



http://img190.imageshack.us/img190/9215/multiform.jpg



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



http://img716.imageshack.us/img716/8878/multiform2.jpg



Mohon bantuannya ya teman-teman

</div>


All times are GMT +7. The time now is 12:47 AM.