Results 1 to 2 of 2

Thread: Can you save a datagrig to a .txt file?[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2002
    Posts
    54

    Can you save a datagrig to a .txt file?[RESOLVED]

    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
    Last edited by Nintendo_Wizard; Jan 16th, 2003 at 12:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width