title: Simulate a click on DBGrid
body: <p>I have done some searching and nothing is working.</p>
  
  <p>Using D5, Zeos and SQLite.</p>
  
  <p>I have a DBGrid and a DataSet (tblBricks) that is Filtered.</p>
  
  <p>In the DBGrid1.OnCellClick Event, I have</p>
  
  <pre><code>tblBricks.Refresh;
  </code></pre>
  
  <p>At run-time I can set focus to the appropriate Row in the DBGrid with</p>
  
  <pre><code>tblBricks.Locate('Color','Red',[loCaseInsensitive]);
  frmMain.DBGridCellClick(Columns[0]);
  </code></pre>
  
  <p>and it focuses the correct Row and Column.</p>
  
  <p>The problem is that the first time I run this application, when the DataSet is Opened, it is set to Filtered:=True; but the display does not yet show as Filtered.</p>
  
  <p>If I click the <strong>already focused</strong> cell in the DBGrid, then it suddenly Filters and correctly displays the results.</p>
  
  <p>How can I simulate a click to the Cell so that the first time through it forces the Filtering or maybe, just force the DataSet to Filter?</p>
  
  <p>Not sure if this is an idiosyncrasy of D5, Zeos, SQLite or a combination.</p>
  
  <p>Thanks</p>