• 12 years ago

    Can someone provide me some help. How can I make a button (BROWSE) who will open a excel sheet in a datagrid in VB.NET.  

  • 12 years ago

    You can use ADO.NET to retrieve data from Excel just like you can from a proper database.  You use OleDb and the Microsoft Jet 4.0 provider, just like for Access.  The only difference is that there are no real tables, so your SQL needs to be adjusted slightly.  Lookup "ADO.NET Excel" on MSDN to get information and examples.

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Beware of bugs in the above code; I have only proved it correct, not tried it.” - Donald Knuth