Hi Jim,
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:
Me.DataGrid1(Me.DataGrid1.CurrentCell) = Now
Hope this helps.
Thanks
Mona[Grapecity]
"Jim Campau" <ji********@bausch.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Does anyone know how I can create a button that will enter the date Now into
a datetime field on a data grid?
Thanks in advance