/ Published in: C#

Stupidly simple -- just one pitfall: class to be bound must have Get/Set methods for reflection to discover. Which is annoying when it comes to client side classes auto generated from WSDL.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DataGridView1.DataSource = foos; //This works. public class FooGood { public string Bar { get; set; } public string Baz { get; set; } } //This Doesn't public class FooBad { public string Bar; public string Baz; }
Comments
