Domanda

I'm using Visual Studio 2010 Ultimate. In a simple Windows application I just want to have one form with a datagrid and a button that open the *.dbf spreadsheet file and put all the data in the dataGrid. I'm using C#. Could you help?

È stato utile?

Soluzione

You'll find the basic code for setting up an ODBC connection here: http://joskovski.blogspot.com/2010/03/reading-dbf-files-from-net.html

And then you can uses something like dataGridView1.DataSource = dt;

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top