title: how to query/get data from Datasource in VB.NET
body: <p>i am building a database application in vb.net and i started by adding a data source from the  DATA in the toolbar. my connection is good and it shows all my tables in the data source panel.</p>
  
  <p>i also see new classes related to my database, like</p>
  
  <pre><code>sakilaDataSet
  sakilaDataSet.customerDataTable
  </code></pre>
  
  <p>...
  and so on.</p>
  
  <p>how do i query and use these ? i googled a lot and i am not able to get this.</p>
  
  <pre><code>Dim cust As sakilaDataSet.customerDataTable = New sakilaDataSet.customerDataTable
          Dim row() As System.Data.DataRow = cust.Select("customer_id=5")
          MsgBox(row.Count)
  </code></pre>
  
  <p>My last try was with the above code, but the <code>row.count</code> always turns out to be zero.</p>