title: To find a row in dataset with a primary key value
body: <p>Help , return dr gives me nothing. I know I am missing something. I am new with this dataset datatable. Please give me some direction. Thank you</p>
  
  <p>Do I have to initialize the datatable? how ? I thought the datatable is filled when you initialized the database </p>
  
  <pre><code>ds as new dsPart
  </code></pre>
  
  <p>My table adapter inside dataset query is as follows. The dataset name is dsPart</p>
  
  <pre><code>SELECT     AttributeValue, Value, Expr2
  FROM   Vehicle
  </code></pre>
  
  <p>AttributeValue is set as primary Key</p>
  
  <p><img src="https://snag.gy/i1WmQ.jpg" alt="Vehicle"></p>
  
  <pre><code>Public Function getVehicleRow(ByVal iRideVehicle As Integer) As dsPart.VehicleRow
     Dim ds As New dsPart
     If iRideVehicle = 0 Then Return Nothing
     Dim dr As dsPart.VehicleRow = ds.Vehicle.FindByAttributeValue(iRideVehicle)
     Return dr
  End Function
  </code></pre>
  
  <p>The value of irideVehicle when I call this function is 2132. 
  which exists.
  The content of vehicle table is:
  +-----------------+--------+-------------+<br>
  | AttributeValue  | Value  |    Expr2    |<br>
  +-----------------+--------+-------------+<br>
  |           2132  | Honda  | new_vehicle |<br>
  |            3214 | Toyota | new_vehicle |<br>
  |            3546 | Subaru | new_vehicle |<br>
  +-----------------+--------+-------------+<br>
  <br></p>
  
  <p>Thank you for your help. </p>