This content has been marked as final. Show 4 replies
or should i use xmllistcollection, it has a removeItemAt()... ^^
The data grid converts the XMLList into an XMLListCollection, so you can use any of the XMLListCollection's methods, such as removeItemAt().
Look at the ListBase-->dataProvider property help topic for details on what conversions the Data Grid is doing:
With plain XML, or XMLList, you must use the delete operator.
The collection API is quite helpful here.
Here is a working example of how to remove the selected item from a Data Grid using the removeItemAt() method of List Base.
Since your Data Grid is converting the data provider (an XMLList) into an XMLListCollection, this is simple.
See attached code.