I have a simple C# application which tries to display a column (named Longitude) as a textbox in a windows form. When I
result = frmLocation.ShowDialog();
I get:
An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll
Additional information: Cannot bind to the property or column Longitude on the DataSource.
The Locations.Designer.cs file has:
//
// longitudeTextBox
//
this.longitudeTextBox.DataBindings.Add(newSystem.Windows.Forms.Binding("Text",this.locationsBindingSource,"Longitude",true));
Can anyone think of how I fix this?