protected void gv_PropertyInOrganizeCity_RowDeleting(object sender, GridViewDeleteEventArgs e) { if ((int)ViewState["ClientID"] != 0) { int organizecity = (int)gv_PropertyInOrganizeCity.DataKeys[e.RowIndex]["ID"]; CM_ClientBLL bll = new CM_ClientBLL((int)ViewState["ClientID"]); bll.ClientInOrganizeCity_Delete(organizecity); BindGrid(); } }