I have the following problem. I have a Button that creates a new product object. Then I add this button product to a list via list.add(product) and than I initialize the DataSource property of the GridView with that list via gridView.DataSource = list.
Here is the example code that will be exuted if the user clicks the add button:Product p = new Product("test", "x", ...);
gridView.DataSource = priceBlocks;
It works. But if I press the button the second time, I overwrite the previous entry from the list / grid. How can I solve this problem? They idear is, to save all created objects in the list to save the whole list later. The grid view is necessary to show the users the added objects. All components are inside an update panel.
Thanks for your help.
View Complete Post