Menggunakan VB.Net
Jika nilai sel kisi kosong, saya mendapatkan kesalahan karena "Konversi dari string"" menjadi mengetik 'Ganda' tidak valid"
Kode (gridview_CellLeave)
Dim z1, z2, z3, z4 As Int32
If grvList.CurrentRow.Cells(1).Value <> "" Then
z1 = grvList.CurrentRow.Cells(1).Value
End If
If grvList.CurrentRow.Cells(2).Value <> "" Then
z2 = grvList.CurrentRow.Cells(2).Value
End If
If grvList.CurrentRow.Cells(3).Value <> "" Then
z3 = grvList.CurrentRow.Cells(3).Value
End If
If grvList.CurrentRow.Cells(4).Value <> "" Then
z4 = grvList.CurrentRow.Cells(4).Value
End If
Bagaimana mengatasi kesalahan ini.
Butuh Bantuan kode Vb.net