Save and Read Datagrid View data Into or From a CSV File
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic 6, Visual Basic.NET
This code is useful for those that want an alternative to Microsoft SQL Server or Access. I created this code because I was tired of programming databases with too many strings. There are just two methods. One for writing from the Datagrid control to a file and the other to populate the Datagrid from a file.
Instructions: Copy the declarations and code below and paste directly into your VB project.