Hello,
please, is there any way how to save data that are in DataGridView when it's not connected to DB?
When I close the form and open it again, it should be still the same as before closing.
I'm a noob, I finally made a form with everything that I need but need this last thing.
This is my table:
Public Class Form1
Dim table As New DataTable("Table")
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
DataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect
table.Columns.Add("Date", Type.GetType("System.DateTime"))
table.Columns.Add("Code", Type.GetType("System.String"))
table.Columns.Add("Position", Type.GetType("System.String"))
table.Columns.Add("Note", Type.GetType("System.String"))
table.Columns.Add("Solved", Type.GetType("System.DateTime"))
DataGridView1.DataSource = table
End Sub
Can anyone post me any code to do that?
Thanks