title: How to get the bindingNavigator current page
body: <p>I'm talking about this:</p>
  
  <p><img src="https://i.stack.imgur.com/OjaH1.png" alt="http://i.imgur.com/Q5J3LEK.png"></p>
  
  <p>I somehow need to get the database information for that row.</p>
  
  <p>My program alllows searching, so I'm not sure how it works. But what I need is, to get the primary key(id) from the active row being viewed in the bindingNavigator window, then from that id, run a query to get some data from another table that has the same foreign key as the primary key.</p>
  
  <p>So there's going to be one navigation box to the left to navigate through the rows in the database, then each time you change the active row, 3 textboxes to the right will get the related data from the other table (connected with foreign key to the primary key in table 1). </p>
  
  <p>I've tried a while, this for example:</p>
  
  <pre><code> MessageBox.Show(bindingNavigatorPnositionItem.GetCharIndexFromPosition);
  </code></pre>
  
  <p>I realise this isn't going to work, I'm not sure what I'm doing really, since this won't help at all if someone is searching, since it's not the primary key. I could read the data in the "id" field that is displayed when a user changes a page - but how do I check if a user changes a page?</p>