Handle GridView1_RowUpdating
Hey guys,
I'm the type of guy who likes to avoid designer code, so I'm trying to handle the GridView1_RowUpdating of my GridView.
Code:
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
foreach (DictionaryEntry entry in e.NewValues)
{
Response.Write("This does not print<br>");
Response.Write(entry.Value);
}
Response.Write("This does print<br>");
GridView1.EditIndex = -1;
GridView1.DataSource = Session["SessionDataViewTable"];
GridView1.DataBind();
}
For some reason nothing is found in my e.NewValues collection. Even though I made an entry, and clicked on Update.
Am I missing something?
Some more specs on this issue.
-Visual Studio 2005
-Windows XP
-C# Code used in ASP.NET web application
Let me know if you need more info from me. Thanks. :)