Save and Read Datagrid View data Into or From a CSV File
Category:
C#, VB.NET, ASP.NETType:
ApplicationsDifficulty:
BeginningAuthor:
AnonymousVersion Compatibility: Visual Basic 6, Visual Basic.NET
More information:
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.
Declarations: