Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
protected void Show_Grid_RowUpdating(object sender, GridViewUpdateEventArgs e) { int id = int.Parse(Show_Grid.DataKeys[e.RowIndex].Value.ToString()); TextBox txt_title = (TextBox)Show_Grid.Rows[e.RowIndex].FindControl("Title"); TextBox txt_desc = (TextBox)Show_Grid.Rows[e.RowIndex].FindControl("Description"); TextBox drop_prior = (TextBox)Show_Grid.Rows[e.RowIndex].FindControl("Priority"); Update_todo(id, txt_title.Text, txt_desc.Text, drop_prior.Text); Show_Grid.EditIndex = -1; DataBind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)