string conStr = "Provider=Microsoft.JET.OLEDB.4.0;data source=d:\\nwind.mdb";
string sqlStr = "SELECT * FROM Employees";
System.Data.OleDb.OleDbConnection conn = New System.Data.OleDb.OleDbConnection(conStr);
DataSet ds = New DataSet();
System.Data.OleDb.OleDbDataAdapter da = New System.Data.OleDb.OleDbDataAdapter(sqlStr, conn);
da.Fill(ds, "Employees");
FpSpread1.DataSource = ds;
FpSpread1.DataBind();
conn.Close();
Dim conStr As String = "Provider=Microsoft.JET.OLEDB.4.0;data source=d:\\nwind.mdb"
Dim sqlStr As String = "SELECT * FROM Employees"
Dim conn As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(conStr)
Dim ds As DataSet = New DataSet()
Dim da As System.Data.OleDb.OleDbDataAdapter = New System.Data.OleDb.OleDbDataAdapter(sqlStr, conn)
da.Fill(ds, "Employees")
FpSpread1.DataSource = ds
FpSpread1.DataBind()
conn.Close()