Is it possible to save the contents of a datagrid to a .txt file using code similar to this:
Private Sub SaveAs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click
SaveFileDialog1.Filter = "Text files (*.txt)|*.txt"
SaveFileDialog1.ShowDialog()
If SaveFileDialog1.FileName <> "" Then
FIleOpen(1, SaveFileDialog1.FileName, OpenMode.Output)
PrintLine(1, DataGrid1.(What do I put Here?)
FileClose(1)
Endif
