For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > October 2006 > Bind Text File To GridView









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Bind Text File To GridView
David

2006-10-31, 7:06 pm

Is there a way to bind a comma-delimited text file to a GridView? I want to
be able to output rejected records that I am importing from a
comma-delimited text file. Thanks.

David


Eliyahu Goldin

2006-10-31, 7:06 pm

David,

You can't databind to a plain text file, but you can first read the records
into any collection object, like Array or ArrayList, and databind to this
object.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


"David" <dlchase@lifetimeinc.com> wrote in message
news:uDq3UwQ$GHA.2300@TK2MSFTNGP04.phx.gbl...
> Is there a way to bind a comma-delimited text file to a GridView? I want
> to be able to output rejected records that I am importing from a
> comma-delimited text file. Thanks.
>
> David
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com