Hi,
I wish to programmatically change the value of a particular readonly column of a datagridview when any other column is edited. This is the code I use:
Private Sub gridViewPFI_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles gridViewPFI.CellValueChanged
Me.gridViewPFI.Rows(e.RowIndex).Cells("UserID").Value = Form1.userid
End Sub
It always gives me a stackoverflow exception.
How do i go about this? Thanks
Degraft
I wish to programmatically change the value of a particular readonly column of a datagridview when any other column is edited. This is the code I use:
Private Sub gridViewPFI_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles gridViewPFI.CellValueChanged
Me.gridViewPFI.Rows(e.RowIndex).Cells("UserID").Value = Form1.userid
End Sub
It always gives me a stackoverflow exception.
How do i go about this? Thanks
Degraft
Last edited: