0
這是我的代碼寫的,但我無法查看數據什麼問題任何一個可以告訴DataGridView的數據綁定上不顯示數據,以數據表
conn_obj.Connect();
SQL = "SELECT FIELDNAME BS_FIELDF WHERE FK_TABDF = '";
SQL = SQL + Table_pkey + "' ORDER BY FIELDNAME";
dSet = conn_obj.SQL_Data_Retrieve(SQL.ToString(), "BS_FIELDF");
conn_obj.DisConnect();
MainTableGrid.AutoGenerateColumns = true; // Added now....
Bind_DataGridView.DataSource = dSet.Tables[0];
MainTableGrid.DataSource = Bind_DataGridView.DataSource;
MainTableGrid.Refresh();
MainTableGrid.Parent.Refresh();