Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Try
  2. Dim gridbaris As DataGridViewRow = DataGridView1.Rows(e.RowIndex)
  3. K_bukuTextBox.Text = gridbaris.Cells(0).Value.ToString
  4. Judul_bukuTextBox.Text = gridbaris.Cells(1).Value.ToString
  5. KategoriTextBox.Text = gridbaris.Cells(2).Value.ToString
  6. Tanggal_diterimaDateTimePicker.Value = gridbaris.Cells(3).Value.ToString
  7. Jumlah_bukuTextBox.Text = gridbaris.Cells(4).Value.ToString
  8. SumberTextBox.Text = gridbaris.Cells(5).Value.ToString
  9.  
  10. K_bukuTextBox.Enabled = True
  11. b_simpan.Enabled = False
  12. b_hapus.Enabled = True
  13. b_ubah.Enabled = True
  14. Catch ex As Exception
  15. MsgBox("Terjadi Kesalahan", MsgBoxStyle.Critical)
  16. End Try
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement