Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

System.ArgumentException Cannot bind to the property or column

$
0
0

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?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>