public bool getDatosDetalle(System.Windows.Forms.DataGridView dgv) { clear(); bool exito = false; try { dsGimnasioTableAdapters.vwdetalleentradaviewTableAdapter ta = new dsGimnasioTableAdapters.vwdetalleentradaviewTableAdapter(); dsGimnasio.vwdetalleentradaviewDataTable dt = ta.GetDataById(datos.idEntrada); dgv.DataSource = dt; exito = true; } catch (Exception ex) { error.Add(ex.Message); } return exito; }
public bool getDatosDetalle(System.Windows.Forms.DataGridView dgv) { clear(); bool exito = false; try { dsGimnasioTableAdapters.vwdetalleentradaviewTableAdapter ta = new dsGimnasioTableAdapters.vwdetalleentradaviewTableAdapter(); dsGimnasio.vwdetalleentradaviewDataTable dt = ta.GetDataById(datos.idEntrada); dgv.DataSource = dt; exito = true; } catch (Exception ex) { error.Add(ex.Message); } return(exito); }