Databinding to nested property - Cannot bind property or column (Winforms)
问题 We are running a .NET 4.0 application using Windows Forms. The application uses a single form for two different types of objects. namespace NetIssue { public partial class Form1 : Form { B myObj; public Form1() { InitializeComponent(); myObj = new B(); } private void Form1_Load(object sender, EventArgs e) { textBox1.DataBindings.Add(new Binding("Text", myObj, "c.Message")); } } public class Comment { public int ID { get; set; } public string Message { get; set; } public Comment(string msg) {