private void ShowPreview() { _importer.UpdatePreview(_settings); dgvPreview.DataSource = _settings.Preview; // Excel sheet combo box if (cmbExcelSheet.DataSource == null) { var ds = _settings.DataSet; var excelSheets = new List <string>(ds.Tables.Count); excelSheets.AddRange(from DataTable dt in ds.Tables select dt.TableName); cmbExcelSheet.DataSource = excelSheets; } }
private void ShowPreview() { _importer.UpdatePreview(_settings); dgvPreview.DataSource = _settings.Preview; }