title: How to write in a DataGridView from a different class
body: <p>I have a Form1, with a DataGridView2 in it.</p>
  
  <p>I want to use this DataGridView in a different class (Class1), that will insert in my DataGridView some data that I take from a database. (In this Class1 I have the connection to this database).
  The code of my Class1, for the extraction of the data from the DB is:</p>
  
  <pre><code>var context = new dbGAPEntities();
  BindingSource bi = new BindingSource();
  bi.DataSource = context.clienti.ToList();
  dataGridView2.DataSource = bi;
  dataGridView2.Refresh();
  </code></pre>
  
  <p>But I can't do this because, in this class, I don't have  dataGridView2.
  How can I do to reference in my class1, the DataGridView  from Form1?</p>
  
  <p>I hope that my problem is clear. </p>
  
  <p>I tried other questions related to this problem, but I have not been of any help.</p>