You cannot use a custom expression in the DisplayMember property of a bound control (316320)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework 1.1)
- Microsoft ADO.NET (included with the .NET Framework) 1.0
- Microsoft ADO.Net 2.0
This article was previously published under Q316320 SYMPTOMS
If you try to use a custom expression for the value of the DisplayMember property of a bound control, the combo box does not accept any input other than a valid field name from the data source.
RESOLUTION
If you want to display more than one field as a single unit, or if you want to display any other calculated field as the DisplayMember property of a bound control, you must modify your SELECT statement so that it includes an expression column in the DataSet object.
STATUSThis behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/9/2006 |
---|
Keywords: | kbDataBinding kbprb KB316320 kbAudDeveloper |
---|
|