看看这个例子
http://community.csdn.net/Expert/topic/3216/3216671.xml?temp=.6849024
你把我的所有拷贝过去运行就好了,
注意,一定要配置连接字符串
http://community.csdn.net/Expert/topic/3216/3216671.xml?temp=.6849024
你把我的所有拷贝过去运行就好了,
注意,一定要配置连接字符串
string sqlText = "select.........";
OleDbDataAdapter Adp = new OleDbDataAdapter(sqlText, Conn);
Adp.Fill(Dt,"TableName");
DataGrid1.DataSource = Dt.Tables["TableName"].DefaultView();
DataGrid1.DataBind();