ArgumentException was unhandled Application.run
Posted
by user369758
on Stack Overflow
See other posts from Stack Overflow
or by user369758
Published on 2010-06-17T20:35:26Z
Indexed on
2010/06/17
20:43 UTC
Read the original article
Hit count: 217
Hi I've been through many sites and can't seem to find an answer.
I modified a view that was connected to a Datagridview connected through a tableadapter on a C# Winforms app and in order to "reconnect" I had to delete the tableadapter and reconnect it. This was to get rid of an error regarding Unique contstraints. So I fixed that and now the application launches but when I click on the tab that that grid is on I get:
System.ArgumentException was unhandled
Message="Cannot bind to the property or column Id on the DataSource.\r\nParameter name: dataMember"
Source="System.Windows.Forms"
ParamName="dataMember"
StackTrace:
at System.Windows.Forms.BindToObject.CheckBinding()
at System.Windows.Forms.BindToObject.SetBindingManagerBase(BindingManagerBase lManager).........
I can't seem to find an answer to this problem. Can someone help me?
Thanks
© Stack Overflow or respective owner