private void _ofdlg_FileOk(object sender, CancelEventArgs e) { _txtArchivo.Text = _ofdlg.FileName; LectorXls lector = new LectorXls(); tabla = lector.Leer(_ofdlg.FileName, 1, 2, 1, 172, 3); _dgvDatos.DataSource = tabla; }
private void _ofdlg_FileOk(object sender, CancelEventArgs e) { _txtArchivo.Text = _ofdlg.FileName; LectorXls lector = new LectorXls(); tabla = lector.Leer(_ofdlg.FileName, 1, 4, 3, 174, 14); DataColumn colCanal1 = new DataColumn("Canal 1", typeof(string)); tabla.Columns.Add(colCanal1); _dgvDatos.DataSource = tabla; }