我的問題是這裏oulined:VB .NET:DataGridView.DataMember在分配兩部分名稱時拋出錯誤。即Sales.StoreContact
http://support.microsoft.com/kb/314043
微軟稱: 「這種行爲是由設計。」
沒有提供解決方法。我需要一個解決方法。
因此,我有一個正確填充表名稱Sales.StoreContact的內容的數據集。
當我嘗試DataGridView1.DataMember = 「Sales.SalesContact」 的IDE拋出:
參數異常是未處理的。
無法創建銷售額的子項列表。
我真的需要一隻手,因爲我試過很多東西,沒有任何工作。我不想重命名我的表。
由於提前,
埃裏克
-------數據集包含-----
<NewDataSet>
<Sales.SalesContact>
<SalesContactID>1</SalesContactID>
<Name>Jimmy</Name>
<ReasonType>Damaged</ReasonType>
<ModifiedDate>2010-01-05T00:00:00+00:00</ModifiedDate>
</Sales.SalesContact>
</NewDataSet>
我用.DataSource = dsTableContents。 Tables.Item(0) 因爲我不得不在動態上下文中使用此操作。 – user323186 2010-09-15 14:39:44
非常感謝丹 – user323186 2010-09-15 14:40:26