protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
try
{
// Enter a approval record, awaiting for supervisor to assign
// get the generated item no
Int32 ItemNo = Convert.ToInt32(e.Keys["ItemNo"]);
String reason = e.NewValues["TextBoxReason"].ToString();
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ItemNo"
DataSourceID="SqlDataSource1" onrowupdated="GridView1_RowUpdated"
CssClass="table table-hover table-bordered"
onrowcommand="GridView1_RowCommand" AutoGenera ...
Go to the complete details ...