public bool getDatos(System.Windows.Forms.DataGridView dgv,int idSocio) { clear(); bool exito = false; try { dsGimnasioTableAdapters.vwsociomembresiasTableAdapter ta = new dsGimnasioTableAdapters.vwsociomembresiasTableAdapter(); dsGimnasio.vwsociomembresiasDataTable dt = ta.GetDataByIdSocio(idSocio); dgv.DataSource = dt; exito = true; } catch (Exception ex) { error.Add(ex.Message); } return exito; }
public bool getDatos(System.Windows.Forms.DataGridView dgv, int idSocio) { clear(); bool exito = false; try { dsGimnasioTableAdapters.vwsociomembresiasTableAdapter ta = new dsGimnasioTableAdapters.vwsociomembresiasTableAdapter(); dsGimnasio.vwsociomembresiasDataTable dt = ta.GetDataByIdSocio(idSocio); dgv.DataSource = dt; exito = true; } catch (Exception ex) { error.Add(ex.Message); } return(exito); }
public DateTime fechaInicioMembresia; // variabe del tipo datetime // Metodo que realizara el refresh de datos public override bool getDatos(System.Windows.Forms.DataGridView dgv) { clear(); // Metodo que limpia atributos bool exito = false; // Variable booleana try { dsGimnasioTableAdapters.vwsociomembresiasTableAdapter ta = new dsGimnasioTableAdapters.vwsociomembresiasTableAdapter(); dsGimnasio.vwsociomembresiasDataTable dt = ta.GetData(); dgv.DataSource = dt; exito = true; } catch (Exception ex) { error.Add(ex.Message); } return(exito); }