DataGridView cell click problem !!!

cwyong1

Active member
Joined
May 20, 2007
Messages
35
Programming Experience
Beginner
Hi All
Below is my code example
VB.NET:
	Sub dgvStatusCellClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs)

		msgbox(dgvStatus.Item(0,dgvStatus.CurrentRow.Index).value)			

	End Sub

As long as the user do not click on any cell in the NEW ROW then everything is fine. Does anyone know how to trap this kind of error.

THANK YOU IN ADVANCE
 
Back
Top