i want to read the excel and display only the table data in gridview
Loading
i want to read the excel and display only the table data in gridview
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Nov 9, 2021, 3:52 AM EST
Manoj MandalRank #3,495 · 415 reputationPosted Nov 9, 2021, 3:55 AM EST
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Nov 9, 2021, 5:11 AM EST
I am unable to access the file, can you post the snapshot?
Manoj MandalRank #3,495 · 415 reputationPosted Nov 9, 2021, 6:23 AM EST
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Nov 9, 2021, 8:03 AM EST
Leon DRank #851 · 2.6K reputationPosted Nov 9, 2021, 8:15 PM EST
Check this:
https://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Excel-Import/Export-Import-Data-from-Excel-to-Datatable.html
Workbook workbook = new Workbook(); workbook.LoadFromFile(@"..\FandH.xlsx"); Worksheet sheet = workbook.Worksheets[0]; this.dataGridView1.DataSource = sheet.ExportDataTable();