2005 类型化DataSet参数化查询问题。
Northwind数据库。
Orders和OrderDetails表。
界面上一个textBox1,用于输入OrderID。点击button1时DataGridView1显示对应Order,DataGridView2显示对应的OrderDetails。要实现这个代码要怎么写?
刚接触2005,好些东西还不明白。
另:已经在TableAdapter查询配置向导里自定义了FillByCustID和GetDataByCustID。
SELECT OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, ShippedDate,
ShipVia, Freight, ShipName, ShipAddress, ShipCity, ShipRegion, ShipPostalCode,
ShipCountry
FROM Orders
WHERE (OrderID = ?)