通过DataTable将Excel转换为SQL和DataGrid Convert XLSX, XLS, XLSM, XLTX, CSV and TSV file to a System.Data.DataTable for full interoperability with System.Data.SQL or to populate a DataGrid. Input true to ToDataTable method to set the first row as column names of the table. The DataTable can populate a DataGrid. How to Convert Excel to SQL DataTable in C# Install an Excel library to convert Excel to SQL DataTable. Select the default Worksheet Create a DataTable from data using ToDataTable. Process values iteratively. Learn to Export DataTable to Excel in C# 相关文档链接 在Github上查看 相关教程 相关操作指南 类文档 下载IronXL DLL 报告此页面的问题 准备开始了吗? Nuget 下载 1,686,155 | 版本: 2025.11 刚刚发布 免费 NuGet 下载 总下载量:1,686,155 查看许可证