title: c#.net clear dataGridView contents from another form
body: <p>I need to connect a button in the form2 with dataGridView in the form1 at c# language
  indeed, I need to control a form content from another one ?
  how the code should be ?</p>
  
  <p>in vb 6.0 I just use form2.text1.text = "" and it works well but here it's not</p>
  
  <p>for example code in c# I need to do this but from another form: dataGridView1.Rows.Clear();</p>