HighTechTalks DotNet Forums  

VS2005 panel with bound controls

Dotnet Framework (WinForms DataBinding) microsoft.public.dotnet.framework.windowsforms.databinding


Discuss VS2005 panel with bound controls in the Dotnet Framework (WinForms DataBinding) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
LightStamp
 
Posts: n/a

Default VS2005 panel with bound controls - 11-02-2009 , 03:11 PM






I'm working on someone elses project and there is a form with a panel
control with bound controls bound to a binding source. I want to add
controls to this container and bind some of them to a binding source while
one of the controls will be unbound. Whenever I just add a label (ie modify
the panel via the designer) and run the project in debug mode I get an error
here:
CType(Me.QFeItemsTableAdapter,
System.ComponentModel.ISupportInitialize).BeginIni t()
in the form's InitailizeComponent section.
The error says System.Exception:System.Reflection.TargetInvocatio nException:
Exception has been thrown by the target of an invocation. ---->
System.InvalidCastException: Unable to cast object of type
'MxSellItemMaint.dsSellItemMainTableAdapters.qFeIt emsTableAdapter' to
type'System.ComponentModel.ISupportInitialize'.
What could be causing this?

The project with the form is actually a DLL project that runs within another
app if that would cause any of this. As soon as I refetch the latest from
VSS (ie no change) it runs fine in debug mode.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.