Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8313389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:28:34+00:00 2026-06-08T20:28:34+00:00

I used a temporary array to populate a ListCollectionView. Later, I have a screen

  • 0

I used a temporary array to populate a ListCollectionView. Later, I have a screen that displays a DataGrid using the ListCollectionView as a dataProvider. The user can delete a row in the DataGrid by selecting the row then clicking a Delete button.

How can I access the original source that ListCollectionView uses, and delete the item from there?

After I do that, will the item also be deleted from the ListCollectionView automagically, and no longer be shown in the DataGrid (or does something need to be refreshed)?

UPDATE 1

Does the following sound like I’m on the right track? (I want to remove it from the source (is that the “.list”?) of the ListCollectionView, not just from ListCollectionView.)

[Bindable] private var _myLCV:ListCollectionView=new ListCollectionView(new ArrayList());
...
var obj:Object = _myLCV.getItemAt(myGrid.grid.selectedIndex); // get item user selected
_myLCV.list.removeItemAt( _myLCV.list.getItemIndex(obj) );   // delete item from source

UPDATE 2

I’m not sure why (I’m using SDK 4.5.1A), but I seem to need to add the following line of code to the above code in UPDATE 1, for the DataGrid to reliably update and show the deleted row:

_myLCV.refresh();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:28:35+00:00Added an answer on June 8, 2026 at 8:28 pm

    My impulse is to recommend deleting the item from the ListCollectionView using removeItemAt.

    If you truly want to access the source instead of dealing with the collection, then it depends what type of ListCollectionView you’re using.

    If you’re using an ArrayCollection you can access the source using the source property.
    IF you’re using an XMLListCollection, you can access the source using the source property.

    There isn’t an inherent source property in the ListCollectionView, but the List property may suffice.

    In any case, removing an item from the ListCollectionView or the ListCollectionView’s source should automatically update the DataGrid. IF not, you can call the refresh() method on the collection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about templates that can be used with parameters that are
It says that in my array that I have gone over the index. My
I have gathered data with jQuery, putten it into a multidimensional array, used JSON.stringify
Having used storyboards for a while now I have found them extremely useful however,
i used this code: List<string> lists=new List<string>(apple,orange,banana,apple,mang0,orange); string names; names=lists.Distinct() is that correct?
This is kinda confusing so please bear with me. I have an array (listOfStates)
I'm using a plist to store bookmarks as a simple array of strings. I
I have a problem in passing an array to a function in JavaScript. I
I have a problem with a series of functions. I have an array of
I have used web service and get the response as the JSON. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.