Datagridview adding two new rows at a time?

Well after an absurd amount of time spent fighting datagridview, I finally stumbled upon what appears to be a workable answer. This was actually suggested in a forum but I've lost the link. By calling bindingsource CancelEdit you prevent the AddNew that datagridview is performing behind the scenes.It's still got a few quirks but is generally okay.

Well after an absurd amount of time spent fighting datagridview, I finally stumbled upon what appears to be a workable answer. This was actually suggested in a forum but I've lost the link. By calling bindingsource CancelEdit you prevent the AddNew that datagridview is performing behind the scenes.It's still got a few quirks but is generally okay: Private Sub dgvGraphs_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.

DataGridViewCellEventArgs) Handles dgvGraphs. CellClick Dim dgv = DirectCast(sender, DataGridView) If e. ColumnIndex = ColEdit.

Index Then If e. RowIndex = dgv. NewRowIndex Then _bs.AddNew() _bs.CancelEdit() E End If End Sub.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions