This class provides a PropertyDescriptor for a single field of an IRow
This class can be used by an ITypedList implementation to provide a property description for a single field in an ITable.
Наследование: System.ComponentModel.PropertyDescriptor
Пример #1
0
 /// <summary>
 /// Generates 'fake' properties.
 /// </summary>
 /// <remarks>
 /// We need this method to create a list of properties for each field in the
 /// ITable as an IRow does not have a property for each field.
 /// </remarks>
 private void GenerateFakeProperties()
 {
     // Loop through fields in wrapped table
     for (int fieldCount = 0; fieldCount < wrappedTable.Fields.FieldCount; fieldCount++)
     {
         // Create a new property descriptor to represent the field
         FieldPropertyDescriptor newPropertyDesc = new FieldPropertyDescriptor(
             wrappedTable, wrappedTable.Fields.get_Field(fieldCount).Name, fieldCount);
         fakePropertiesList.Add(newPropertyDesc);
     }
 }