Hi sir,
I have Ascii file seperated by comma..How can i import this file to Datagridview..could you reply this post soon..
Thanks
Anusha
Import Ascii File to Datagridview
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jun 26, 2013, 4:25 AM EDT
Check out this article for one way:
http://www.c-sharpcorner.com/UploadFile/ankurmee/import-data-from-text-and-csv-file-to-datagridview-in-net/
Another way would be use the code in this link to load the data into a DataSet:
http://www.java2s.com/Code/CSharp/Database-ADO.net/ReadcommaseparatedvalueintoDataSet.htm
You can then bind the DataTable to your DataGridView with a line such as this:
dataGridView1.DataSource = myDataSet.Tables["TheData"].DefaultView;