Excel to SQL and DataGrid via DataTable 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# Related Docs Links View on Github Related Tutorial Related How-To Guide Class Documentation Download IronXL DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 1,686,155 | Version: 2025.11 just released Free NuGet Download Total downloads: 1,686,155 View Licenses