private void CargaGrid() { oEnsamble = new WCF_Ensamble.Hersan_EnsambleClient(); try { gvDatos.DataSource = null; InyeccionBE Obj = new InyeccionBE(); Obj.OP = txtOP.Text; Obj.Color.Nombre = cboColores.SelectedValue.ToString(); oList = oEnsamble.PRO_Inyeccion_Obtener(Obj); gvDatos.DataSource = oList; } catch (Exception ex) { RadMessageBox.Show("Ocurrió un error al cargar los datos\n" + ex.Message, this.Text, MessageBoxButtons.OK, RadMessageIcon.Error); } finally { oEnsamble = null; } }