Listbox, ArrayList of objects.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Holstein
    New Member
    • May 2012
    • 1

    Listbox, ArrayList of objects.

    Hi,

    Im currently working on a school assignment.

    Im gonna have a ArrayList with objects of customers that i need to represent in a listbox. I think i have solved that but here is the tricky part:

    I need to be able to select an item in the listbox and then be able to click a change button, get the data from the specific object which is represented in the listbox and then be able to edit the objects data.

    Is there any way of doing this smooth?

    Cheers
  • RhysW
    New Member
    • Mar 2012
    • 70

    #2
    yes, dont use a listbox, use a datagridview, and dont use an array list, use a bindinglist. unless the spec says you have to use those two.

    Comment

    Working...