Buddy,
yeh but I will explain my problem in detail

Private Sub dgIncome_Leave(sender, e)

' The code to save changes in datagrid dgIncome as well as new dataset ds1
'I wrote
dgIncome.update()
ds1.Income.AcceptChanges()
ds1.WriteXml("c:\n.xml")
dgIncome.Datasource = ds1.Tables("Income")


End sub

I don't know why my xml file is not populated with the datagrid
could you plz explainme in detail