title: Display Query results in a DataGrid View
body: <p>I am working on a C# application that writes to a database whenever new info comes in through a file. Then, when the user wants to get some specific information, he queries the database and then, based on the query, whatever info is there in the database must be displayed in a datagrid view.</p>
  
  <p>So, the database(LogDatabase) here has three fields, 1.Timestamp 2.LogMessage and 3.Hash
  I send queries to the database looking for the word "ERR" in the LogMessage field. The lines that contain this must be displayed in the datagridview called "query_dataview".</p>
  
  <p>What must i do? I've sent queries to count the occurance of "ERR" and they worked. But I am not able to display the information in a datagrid. Please help </p>
  
  <pre><code>logDatabaseTableAdapter_query
      .Connection.ConnectionString = "data source=C:\\TMU_Files\\test33.s3db";
  logDatabaseTableAdapter_query
      .Fill(this.logDatabaseDataSet_query.LogDatabase);
  </code></pre>
  
  <p>This is what i did to fill the entire database into another datagrid view. So, Now I want to use only those entries that satisfy the requirements of the query sent. </p>