Quote:
how I can simply save
well, I guess it depends on your definition of 'simply' doesn't it ?
My definition of 'simply' would be using a datatable and the methods it already has ...
'Setup, somewhere, maybe Init
'Create backing data-table
Dim dt As New DataTable("Src")
dt.Columns.Add("task", GetType(String))
dt.Columns.Add("tags", GetType(String))
dt.Columns.Add("priority", GetType(Integer))
' .. and so forth
'Add datatable as datagridview's data source
'Assuming datagridview's name is dgv (original, not)
dgv.DataSource = dt;
'
'As part of Save Event from button click or such
Dim file = "c:\somedirectory\someotherdirectory\tasks.xml"
dt.WriteXml(file, XmlWriteMode.WriteSchema)
'Maybe as part of Form Load event/Setup
'Assuming dt and file defined
dt.ReadXml(file
But your definition of 'Simple' may vary - the 'Setup/Init' section I've demonstrated could be combined with the 'maybe as part of Form Load event/Setup' obviously - my intent is more to make you aware of the methods the DataTable Class provides, rather than a 're-invent the wheel' approach