hi try this
protected void ctgGridView_RowEditing(object sender, GridViewEditEventArgs e)
{
try
{
gvCategory.EditIndex = e.NewEditIndex;
bindcatdata();
}
catch { }
}
protected void ctgGridView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
try
{
gvCategory.EditIndex = -1;
bindcatdata();
}
catch { }
}
protected void ctgGridView_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
try
{
int queryStatus = 0;
int index = e.RowIndex;
GridViewRow row = (GridViewRow)gvCategory.Rows[index];
TextBox txt = (TextBox)row.FindControl("txteditAxis");
Label lbl = (Label)row.FindControl("lblid");
Label lbl2 = (Label)row.FindControl("lblid12");