Find and change specific object in a class

  • Thread starter Thread starter Shan1986
  • Start date Start date
S

Shan1986

Guest
Hallo,

I have a Class called Equipments and i use the following code to add values

Dim eList As BindingList(Of Equipments) = CType(BS.DataSource, BindingList(Of Equipments))
eList(0).Name = ComboBox1.SelectedValue
eList(0).Size = ComboBox2.SelectedValue
eList(0).Cost = ComboBox3.SelectedValue


Now i want know how can i find a specific equipment by its Name and change its value?

And also, How do i edit instead of using index eList(0) just edit BS.Current?

Thanks

Continue reading...
 
Back
Top