Hola necesito ayuda he estado buscando como pasar los datos de un DataGrid a otro y encontre la solucion aqui propuesta,

lo que me pasa es que me da errores por todos lados aver si me podeis echar una manita que estoy tela de agobiada
Os paso el código ave si sabeis que pasa:
Private Sub cmdSiguiente_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles cmdSiguiente.Click
**** AQUI ME DA ERROR EN Handles ERROR DE COMPILACION SE ESPERABA:FIN DE LA INSTRUCCION ******
Dim temp As DataTable
Dim col As DataColumn
Dim i As Integer
i = 0
temp = New DataTable
**** AQUI ME FALLA EN Type.GetType SE ESPRABA: EXPRESION ****
col = temp.Columns.Add("CLAVE",
Type.GetType("System.String"))
col.AllowDBNull = False
col.Unique = False
For i = 0 To Datagrig1.Items.Count - 1
If CType(DataGrid1.Items(i).Cells(0).Controls.Item(1) , CheckBox).Checked Then
Try
Dim fila As DataRow
fila = temp.NewRow
fila(0) = DataGrid1.Items(i).Cells(2).Text
temp.Rows.Add (fila)
*** AQUI EN As: SE ESPERABA: FIN DE LA INSTRUCCION ***
Catch IOExcep
As System.IO.IOException
****AQUI EN try: SE ESPERABA If o Select o SubFunction o Property o Type o With o Enum o fin de la instruccion ****
End
Try
End If
Next
DataGrid2.DataSource = temp
***Y AQUI EN DataGrid2.DataBind() SE ESPERABA :=
DataGrid2.DataBind()
End Sub