datagridview控件选中某行后触发事件的代码哪里有错,多谢各位

datagridview控件选中某行后触发事件的代码哪里有错,谢谢各位大虾
Private Sub DataGridView1_CellValueChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged
        selectedsheet = DataGridView1.CurrentCell.Value
        If selectedsheet Is Nothing Then
            Button3.Enabled = False
            Button4.Enabled = False
        Else
            Button3.Enabled = True
            Button4.Enabled = True
        End If
    End Sub
DataGridView 控件

------解决方案--------------------
你代码抄错了吧,这是单元格的值发生变化时的事件,不是选中的触发事件
------解决方案--------------------
datagridview控件选中某行后触发事件的代码哪里有错,多谢各位
代码不对吧。