private void formRanchos_Load(object sender, EventArgs e) { dgvInfoRanchos.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dgvInfoRanchos.Size = new Size(this.Width - 40, this.Height - 200); dgvInfoRanchos.Location = new Point(20, 150); btnReporteExcel.Location = new Point(this.Width - 140, this.Size.Height - 40); btnAdminRanchos.Location = new Point(this.Width - 170, 50); label1.Location = new Point(this.Width - 220, 95); btnActualizar.Location = new Point(20, this.Size.Height - 40); listaRanchos = Rancho.GetRanchos(); ActualizarTabla(); }
private void btnActualizar_Click(object sender, EventArgs e) { listaRanchos = Rancho.GetRanchos(); ActualizarTabla(); }