public FrmCatalagóAuto() { InitializeComponent(); panel1.AutoScrollPosition = AutoScrollPosition; RutaUDL = Directory.GetCurrentDirectory(); RutaUDL += "\\conexion.udl"; this.WindowState = FormWindowState.Maximized; DgvDatos1.AutoGenerateColumns = false; lstAutos = AutosBL.GetAutos(RutaUDL); Cargar(); }
private void Cargar() { lstAutos = AutosBL.GetAutos(RutaUDL); bsDatos.DataSource = lstAutos; DgvDatos1.DataSource = bsDatos; }