Results 1 to 12 of 12

Thread: [RESOLVED] Populating a Datafield Grid

Threaded View

  1. #4

    Thread Starter
    New Member
    Join Date
    Nov 2010
    Posts
    11

    Post Re: Populating a Datafield Grid

    thanks for the quick responses!
    so..
    i changed the delimiter to reader.SetDelimiters(ControlChars.Tab)
    and it gives me a input array is longer than the number of columns in this table. So that gives me nothing in my datagridview now. That doesn't help me put the text file data into the same amount of columns in a datagrid view.
    Hmm Paul, okay my file is a tab delimited file.
    so it would be like
    one two three
    four five six
    seven eight nine
    Is there a way to make it take different textfiles and put the respective amount of columns from the text file into the same amount of columns on a datagrid view? such as if i do a 5 column text file or a 7 column text file?
    Last edited by sylavel; Nov 29th, 2010 at 09:22 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