Gridview remains in EDIT mode and doesn't get out of it when i don't rebind it, why ? but when i rebind gridview that it exits out of eidt mode successfully, why ?
protected void gvTest_Edit(Object sender, GridViewEditEventArgs e)
{
gvTest.EditIndex = e.NewEditIndex;
Response.Write("Editing...");
connectToDb(); // a funtion to rebind data but when i comment it then after click cancel button a gridview doesn't get out of EDIT mode else do.
}