Question DATAGRIDVIEW and Changing cell values

degraft

Member
Joined
Feb 17, 2009
Messages
7
Programming Experience
1-3
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
 
Last edited:
Back
Top