为什么ds.tables.remove不能彻底的清除table,绑定的datagrid还照样显示原来的数据?
OrderDA.SelectCommand.CommandText = "SELECT CustomerID, ContactName FROM Customers"
OrderCB.RefreshSchema()
'ds.Tables.Remove(ds.Tables("s_order_dt")) '清除表,但是不知道为什么还有在datagrid中显示数据,不能显示新的数据和
'新的数据结构?????
ds.Tables("s_order_dt").Clear() '清除表所有的数据,但是表结构还在,
Me.DataGrid1.DataSource = Nothing
OrderDA.Fill(ds, "s_order_dt")
Me.DataGrid1.SetDataBinding(ds, "s_order_dt")