Hi
I always receive the following exception
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>nDMS.vshost.exe</AppDomain><Exception><ExceptionType>System.ArgumentException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Child list for field Company cannot be created.</Message><StackTrace> at System.Windows.Forms.BindingContext.EnsureListManager(Object dataSource, String dataMember)
at System.Windows.Forms.ListControl.SetDataConnection(Object newDataSource, BindingMemberInfo newDisplayMember, Boolean force)
at System.Windows.Forms.ListControl.OnBindingContextChanged(EventArgs e)
at System.Windows.Forms.Control.set_BindingContextInternal(BindingContext value)
at System.Windows.Forms.Control.set_BindingContext(BindingContext value)
I think the problem is cause by ComboBox not being able to bind to any column name that have a dot character in them. Unfortunately the column name must have the dot because of SQL stuff.
Is there another way to prevent make this work?
The column name is "Company.fullname"
The data source of combobox is a datatable.
base.DataSource = tableData; //tableData is DataTable class.
base.DisplayMember = table.getName(display);
base.ValueMember = table.getName(table.binding);
Thanks,
Max