title: Gridview selectedindex changed not firing on first click
body: <p>Here is my code:</p>
  
  <pre><code>Protected Sub BookingsGV_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles BookingsGV.SelectedIndexChanged
      BookingID = BookingsGV.SelectedValue
      Dim query = From a In db.Approvers Where a.ApprovalStatus = False And a.BookingID = BookingID
      Select a.ApproverEmail()
      ApproverList.DataSource = query
      ApproverList.DataBind()
      EmailStatusLabel.Text = String.Empty
  End Sub
  
  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      Dim query = From b In db.Bookings Where b.Approved = False And (From a In db.Approvers Where a.ApprovalStatus = False Select a.BookingID).Contains(b.BookingID) Select b.BookingID, b.DateRequired Distinct Order By DateRequired
      BookingsGV.DataSource = query
      BookingsGV.DataBind()
      If ApproverList.Items.Count &gt; 0 Then
          DetailsPanel.Visible = True
      Else
          DetailsPanel.Visible = False
      End If
  End Sub
  </code></pre>
  
  <p>When I click on a row for the first time it is selected but nothing fires and my details panel is not displayed. When I click for the second time I get the expected results. Please can you tell me how to get around this problem?</p>