title: c# query builder remove filter
body: <p>I'm using a query builder in C# to filter data to a <code>DataGridView</code>.</p>
  
  <p>I use the following code:</p>
  
  <pre><code>private void namefilter_SelectedIndexChanged(object sender, EventArgs e)
  {
      //filters newreport on name
      this.newreportTableAdapter
          .namefilter(this.newreport_database.Onderhoud_Database, namefilter.Text);
  
      if (namefilter.Text == (""))
      {
          //remove filter. show al data in newreport.
      }
  }
  </code></pre>
  
  <p>This code works fine for me, now I want to remove the filter when the combobox "namefilter" is set to "" anyone any idea regarding which code I need?</p>
  
  <p>I've tried several codes. None of them work properly.</p>
  
  <p>Regards</p>
  
  <p>Peter</p>