FarPoint.Win.Spread.Column col;
col = fpSpread1.ActiveSheet.Columns[0];
string conStr = "Provider=Microsoft.JET.OLEDB.4.0;data source=D:\\nwind.mdb";
string sqlStr = "SELECT * FROM Orders";
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, "Orders");
fpSpread1.DataSource = ds;
listBox1.Items.Add(col.DataField);
Dim col As FarPoint.Win.Spread.Column
col = fpSpread1.ActiveSheet.Columns(0)
Dim conStr As String = "Provider=Microsoft.JET.OLEDB.4.0;data source=D:\\nwind.mdb"
Dim sqlStr As String = "SELECT * FROM Orders"
Dim conn As New System.Data.OleDb.OleDbConnection(conStr)
Dim ds As DataSet = New DataSet()
Dim da As New System.Data.OleDb.OleDbDataAdapter(sqlStr, conn)
da.Fill(ds, "Orders")
fpSpread1.DataSource = ds
ListBox1.Items.Add(col.DataField)