1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim dt As New DataTable()
Dim bs As New BindingSource()
Dim i = ReleaseDataGridView.CurrentRow.Index
Try
With ReleaseDataGridView
.Rows(i).Cells("DataGridViewTextBoxColumn1").Value = BUTextBox.Text
End With
Catch ex As Exception
MessageBox.Show(ex.Message) 'Error MEssage
End Try
Me.BindingContext(ReleaseDataGridView.DataSource).EndCurrentEdit()
ReleaseDataGridView.Refresh()
End Sub |
Partager