public PropertyDescriptorCollection GetProperties() { List <PropertyDescriptor> properties = new List <PropertyDescriptor>(); foreach (var col in OwnerList.Headers) { PropertyDescriptor pdesc = new DataItemPropertyDescriptor(col.Name, Helper.ToType(col.Type)); properties.Add(pdesc); } return(new PropertyDescriptorCollection(properties.ToArray())); }
public PropertyDescriptorCollection GetProperties() { List<PropertyDescriptor> properties = new List<PropertyDescriptor>(); foreach (var col in OwnerList.Headers) { PropertyDescriptor pdesc = new DataItemPropertyDescriptor(col.Name, Helper.ToType(col.Type)); properties.Add(pdesc); } return new PropertyDescriptorCollection(properties.ToArray()); }