Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to refresh/edit ListView (XMLDataSource bound)

Status
Not open for further replies.

WPInternet

IS-IT--Management
Jun 6, 2009
1
US
OK, so I have a ListView that is populated by an XMLDataSource. When the user clicks to Delete (using LinkButton with Command="Delete"), a function deletes the node based on the argument based by CommandArgument. Easy enough.

Problem...

It get a SystemNotSupported error after it completes the delete.

Anyone know how to do this? I am having a similar issue updating....

Any ideas would help, I am pulling my hair out at this point.

WP
 
1. xmldatasource is hierarchical, not tabular it's meant for use with menu and tree views, not list views.
2. datasources are evil. then cannot be tested, let alone debugged. therefore you cannot determine where the problem is.

Scrap the datasource controls altogether.
1. load the xml into a collection of objects
2. bind these objects to the listview.
3. handle the insert/edit/delete manually.

to do any of these modifications will require the xml file to be overwritten. depending on how large the file is and how many users can edit the xml can effect performance.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top