实现该表格的代码如下:
string connect_str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\db.mdb";
OleDbConnection thisConnection = new OleDbConnection(connect_str);
string sql = "select * from txt ";
OleDbDataAdapter thisAdapter = new OleDbDataAdapter(sql, thisConnection);
DataSet thisDataSet = new System.Data.DataSet();
thisAdapter.Fill(thisDataSet, "table");
DataTable dt = thisDataSet.Tables["table"];
dataGridView1.DataSource = dt;
thisConnection.Close();
咨询一下:表格中的文字内容,鼠标双击某一行,就获得文字内容,再赋给textbox.text 里。
感谢积极回复,望能详细些。