i just tried
But i keep getting an errorCode:For Each row As DataRow In FilesDataGridView.Rows ' Try ' Me.FilesTableAdapter.NewProfile(Me.FilesDataSet.Files, Prifle_NameTextBox.Text) ' Catch ex As System.Exception ' System.Windows.Forms.MessageBox.Show(ex.Message) 'End Try Me.FilesBindingSource.RemoveCurrent() Next
Invalid cast exception was unhandled
unable to cast object of type 'system.windows.forms.datagridviewrow' to type 'system.datarow'




Reply With Quote