Auto Deselect first row on Datagridview Automatically
  • generate a event of datagridview

    Private Sub DataGridView1_DataBindingComplete(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewBindingCompleteEventArgs) Handles DataGridView1.DataBindingComplete

    There are three ways to do that 


    ' DataGridView1.Rows(0).Selected = False

    ' For Each row As DataGridViewRow In Me.DataGridView1.SelectedRows
    ' row.Selected = False
    ' Next

    End Sub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week