private void miEliminar_Click(object sender, EventArgs e) { Element el = GGCPersLiq.TableControl.Table.CurrentElement; if (el != null) { if (el is GridRecord) { DataRowView drv = (el as Record).GetData() as DataRowView; DataSet DSDevuelveID = new DataSet(); DataTable DTDevuelveID = new DataTable(); WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones(); WSLic.Url = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx"; DSDevuelveID = WSLic.EliminaPersonalLicEstudios(mdlGenerales.Conexion, txtTipoDoc.Text.ToString(), txtNDoc.Text.ToString(), drv[1].ToString(), drv[5].ToString(), drv[6].ToString(), mdlGenerales.STRUsuario); if (drv[2].ToString() == "SI") { DeleteFile(drv[8].ToString()); } CargaGrid(txtTipoDoc.Text.ToString(), txtNDoc.Text.ToString(), txtNombres.Text.ToString(), txtApellidos.Text.ToString(), txtTelefono.Text.ToString(), txtEmail.Text.ToString()); MessageBoxAdv.Show("Se elimino el estudio seleccionado", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }