Esempio n. 1
0
        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()));
        }
Esempio n. 2
0
        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());
        }