protected void eliminarDatos(OrderedDictionary keys) { clsDetalleDocumento DetalleDocumento = new clsDetalleDocumento(); DetalleDocumento.Id = keys["Id"] as int?; var ejecutor = (Comandos)Session["ejecutorBDSAFcore"]; var fachadaCore = new clsFachadaSAFcore(ref ejecutor); int resultado = 0; SentenciaSQL sql = new SentenciaSQL(); sql.FiltroBD.Add(new FiltroBD(clsDetalleDocumento.Campos.Id, DetalleDocumento.Id, FiltroBD.OperadorLogico.igual)); resultado = fachadaCore.eliminarDetalleDocumento(DetalleDocumento, sql); Session["Datos" + nombreForm] = null; gvDatos.DataBind(); }