Hi All,
I would like to save Gridview with all of the columns value and reload the same grid without using database??
I would like to save Gridview with all of the columns value and reload the same grid without using database??
Dim ds As New DataSet
Dim dt As New DataTable
Dim xml As New Xml.XmlDocument
Dim datagridview1 As DataGridView = Me.DataGridView1
Dim datagridview2 As New DataGridView
ds = datagridview1.DataSource
dt = datagridview1.DataSource
dt.WriteXml("c:\test.xml")
datagridview2.DataSource = ds
datagridview2.DataSource = dt
datagridview2.DataSource = dt.ReadXml("c:\test.xml")
Comment