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")
' .. 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"
'Maybe as part of Form Load event/Setup
'Assuming dt and file defined
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