An "An unhandled exception of type 'System.ArgumentException' occurred" error message occurs if the DataTable name or DataRelation name includes a period (314043)
The information in this article applies to:
- Microsoft ADO.Net 2.0
- Microsoft ADO.NET (included with the .NET Framework)
This article was previously published under Q314043
This article refers to the following Microsoft .NET Framework Class Library namespaces:
- System.Data
- System.Data.OleDb
- System.Data.SqlClient
SYMPTOMS
The DataMember property of a DataGrid control uses a period (.) to separate DataTable and DataRelation names. The period is used to separate parent and child elements.
If the DataMember property is set to a DataTable or DataRelation name that includes a period, the property takes only the characters to the left of the period and returns the following error message:
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Can't create a child list for field Cust.
STATUSThis behavior is by design.REFERENCES
For more information on ADO.NET objects and syntax, refer to the following Microsoft .NET Framework Software Development Kit (SDK) documentation or MSDN Online:
Modification Type: | Major | Last Reviewed: | 3/13/2006 |
---|
Keywords: | kbtshoot kberrmsg kbDataBinding kbfix kbprb kbSqlClient kbSystemData KB314043 kbAudDeveloper |
---|
|