I am a beginner in c#, I created one dataGridView1
in a Form
to which I added some rows and columns (without using DataSet
and D
Welcome to the C# world !
A good start to solve your problem should be to use Serialization, it's really handy when you need to save Objects into an XML file.
I don't know how you store the Objects that fills the DataGrid but if you can, you should make them serializable, add some methods like Load(), Save(), etc.
Read this for more informations : MSDN - Serialization
You'll find plenty informations on how to do this, a little bit harsh to implement when you start but saves you a damn lot of time further on the road !
Hope it will help.
EDIT 1 :
Just saw your edits, it seems like you're not using Objects, just plain inserts. In that case, my solution won't help but think about it for more complex situations...