You can add the following code in the Button_Click event handler:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Specify the row and column number for the cell whose value you wish to change
Me.DataGrid1(1, 1) = Now
End Sub
To change the value of the current cell, you can use:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.