private System.Windows.Forms.PropertyGrid prop; ExampleWebService ws = new ExampleWebService(); Customer cust = ws.GetCustomer(); prop.SelectedObject = customer;
[WebMethod] public Customer GetCustomer() { Customer customer = new Customer(); return customer; }
[TypeConverter(typeof(PropertyConverter))] public class Address { ... } public class Customer { public Address MailingAddress { ... // get, set } } public class PropertyConverter : ExpandableObjectConverter { public override object ConvertTo(...) { ... } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)