Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,

I am successfully convert the xml files into dataset.But at the same time i want to edit this values represented in dataset.As we know it is easy to edit in sql datasource.But here it is xml datasource.How to edit this?plz help me
Posted

1 solution

Hi
If you use the Dataset's ReadXml() then that dataset will be populated with data tables as per your XML structure. So when editing the grid, the bound control update the tables automatically. If you use a Edit Item template then at the gridview's Updating event populate the datasets tables. Then call the Dataset's WriteXml() method to update the xml. Bind the gridview with updated dataset.

If any doubt post comments.
 
Share this answer
 
Comments
sridharan28 14-Mar-11 5:19am    
will you plz provide a suitable link for this?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900