Hi I have a custom BindingList Containing Products with the following information
string ProductID
int Amount;
How would I make it possible to do the following.
ProductsList.Add(new Product("ID1", 10));
ProductsList.Add(new Product("ID2", 5));
ProductsList.Add(new Product("ID2", 2));
The list should then contain 2 Products
ProductID = "ID1" Amount = 10
ProductID = "ID2" Amount = 7;
So It workes kind of like a Shopping Cart
Im looking at the AddingNew Event and override void InsertItem(int index, T item)
But I could really need a little help getting started
i really don’t know why you require this custom list as there are many good collections in the .net library but i have tried something below.
and in the client code where you can use this list.