title: Importing Excel spreadsheet into DataGridView and completing search
body: <p>I am converting an old VBA application to VB.NET. This application contains several tools, and I need some help converting one of them over.</p>
  
  <p>Essentially, there is an Excel spreadsheet full of customer information such as the customer's company name, model number, serial number, warranty end date, plan end date, city/country, alt company name and comments.</p>
  
  <p>The tool has a list view control with all the matching columns, same as the Excel spreadsheet, and there is a text box in which the user can type some search criteria, such as a serial number or company name. Any matching results from the Excel spreadsheet are put into the list view with the data from the columns of the spreadsheet, sorted into the correct matching column for the list view control.</p>
  
  <p>The current VBA tool is easily able to import this data into the form as it (the form) has easy access to the spreadsheet data - however; in my case, with my program being external to Excel and VBA - I can't do this without importing the data first.</p>
  
  <p>So my question is:</p>
  
  <ol>
  <li><p>How do I import an excel spreadsheet into my VB.NET form to use the data (this file is always in the exact same directory on every machine so a file browse dialog is not necessary, just storing the directory of the Excel spreadsheet should do fine).</p></li>
  <li><p>How do I make it/what would be some appropriate code that allows the user to enter a search criteria, and populate the list view with matching results</p></li>
  <li><p>When the user completes a search and the list view is populated with matching data from the Excel spreadsheet, how do I sort the data into the fields (sort the data in the columns in Excel into the columns in VB.NET list view, so matching result in Company column from Excel would go into a list view column named 'Company').</p></li>
  </ol>
  
  <p>I have attached an example of the Excel spreadsheet which contains the data.</p>
  
  <p><a href="https://drive.google.com/file/d/1SiFZQiz8gsHfKgGIJZmLfrbmfhQkot7B/view?usp=sharing]" rel="nofollow noreferrer">https://drive.google.com/file/d/1SiFZQiz8gsHfKgGIJZmLfrbmfhQkot7B/view?usp=sharing]</a><a href="https://i.stack.imgur.com/TORTL.png" rel="nofollow noreferrer">1</a></p>
  
  <p>This is what the list view looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/TORTL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TORTL.png" alt="enter image description here"></a></p>