I hope I can learn about persistence in classic ASP.NET.
I have a project that doesn't seem to persist the data in my GridView (grid1). Basically I do this:
My GridView is defined in aspx form.
I included a button called "Update"
Upon initialization, in the codebehind page load, I build a datatable (mydatatable) with 18 rows of data, and bind to grid1.
When I use the form to indicate changes, I then click on the "Update" button.
Inside the update_Click() method, I re-build mydatatable with 10 rows of data.
grid1.DataSource = null;
grid1.DataBind(); (Not sure if this is necessary)
grid1.DataSource = mydatatable;
grid1.DataBind();
Focus returns to the same web form. (I don't close it, or redirect to some other page)
Here's the thing: if I click the "Update" button again, the grid1 has a count of 18 rows, not 10.
Why isn't grid1 persisting with 10 rows?

