title: Pass all rows from a DataGridView on one form to another vb.net
body: <p>So i am trying to pass all rows from a DataGridView on a <strong>Button Click</strong> from one form to another. Which is from grd_order in frm_1.vb to grd_invoice in frm_2.vb</p>
  
  <p>This is as far as i can go since i am stil new to vb.net</p>
  
  <p>frm_1.vb</p>
  
  <pre><code>Private Sub btn_purchase_Click(sender As System.Object, e As System.EventArgs) Handles btn_purchase.Click
        Dim newForm As New frm_2
        newForm.AllRows = grd_order.DataSource
        'what should i put here because the above line is wrong
        newForm.Show()
  End Sub
  </code></pre>
  
  <p>frm_2.vb</p>
  
  <pre><code>Public Class frm_2
        Public Property AllRows As DataGridViewSelectedRowCollection
        'I know that DataGridViewSelectedRowCollection is used for the specific row but what about all rows?
  
        Private Sub frm_2_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        'grd_invoice.DataSource = PassText
        'what should i put here
        End Sub
  End Class
  </code></pre>