将Excel文件读入DataTable包括系统定义的列

我正在写一个程序来读取使用C#的Excel和存储在一个DataTable 。 当我在debugging时检查DataTable的列时,会看到像Table_SchemaTable_CatalogTable_NameTable_Type等系统列。如何排除这些不需要的列?

我的代码:

 string sSheetName = null; string sConnection = null; int nOutputRow = 0; DataTable dtTablesList = default(DataTable); OleDbCommand oleExcelCommand = default(OleDbCommand); OleDbConnection oleExcelConnection = default(OleDbConnection); sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + txtFileName.Text + ";" + "Extended Properties=Excel 8.0;"; oleExcelConnection = new OleDbConnection(sConnection); oleExcelConnection.Open(); dtTablesList = oleExcelConnection.GetSchema("Tables"); if (dtTablesList.Rows.Count > 0) { sSheetName = dtTablesList.Rows[0].Field<string>("TABLE_NAME"); } dtTablesList.Clear(); dtTablesList.Dispose(); if (!string.IsNullOrEmpty(sSheetName)) { oleExcelCommand = oleExcelConnection.CreateCommand(); string commandText = "Select * From [" + sSheetName + "]"; oleExcelCommand.CommandType = CommandType.Text; OleDbDataAdapter daexcel = new OleDbDataAdapter(commandText, oleExcelConnection); dtTablesList.Locale = System.Globalization.CultureInfo.CurrentCulture; daexcel.Fill(dtTablesList); } oleExcelConnection.Close();