Removing specific Objects from ArrayList

Hi
I need to remove a specific object from an array list.

In my application I have datagrid datasource = to my arraylist.

I need to allow the user to select the object to be removed on the datagrid and click a "remove" button.

Is it possible to identify the object to be removed this way ?

Any help will be appreciated.

Comments

  • If you have can get a reference to that object you can use the '.Contains' to verify if it is there and '.IndexOf' to find where in the arraylist it is.

    ~rlc
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion