Thanks Guys!
is using a while loop like this a bad idea, is their an easier/better way?
vb Code:
Private Sub Content_CellContentClick_1(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles Content.CellMouseDown Dim i As Integer = 0 While i < Content.Rows.Count Content.Rows(i).Selected = False i = i + 1 End While If e.Button = Windows.Forms.MouseButtons.Right Then Content.Rows(e.RowIndex).Selected = True End If End Sub




Reply With Quote