C# Typed DataSets: OleDBDataAdapter use the column names from the Typed DataSet and not ExcelSheet
问题 I'm using VS 2010 with C# for a Windows Form application. I need to load my data from the Excel sheet onto a DataSet. I created the DataSet using the DataSet designer and I manually added the tables and columns (FirstTable, Column1, Column2) . Since I access the columns a lot, the code would be a lot cleaner to have a typed dataset instead of using an untyped one. When I used the OleDBDataAdapter and populated the DataTable using Fill on FirstTable , Column1 and Column2 were empty and there