Datagridview select row and column

Joined
Jan 5, 2009
Messages
8
Programming Experience
Beginner
Hi,I has a problem here...

I has a datagridview and now I would like to determine that whether column1 in row 1 is selected by the user.What should I write to do so?



VB.NET:
 Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
        If (DataGridView1.Rows(1).Cells(1).Selected) Then
            MessageBox.Show("")
        End If
    End Sub
 
Back
Top