Class PortBundleEntrySortableCollection
- Namespace
- SWConfigDataClientLib.Proxies.PortBundle
- Assembly
- IpPbxCDSClientLib.dll
PortBundleEntrySortableCollection is a sortable collection of PortBundleEntry objects. It is used to hold local filter results and to sort result list without recalling the server. The class can be bound to DataGridControls.
public class PortBundleEntrySortableCollection : List<PortBundleEntry>
- Inheritance
-
PortBundleEntrySortableCollection
Constructors
PortBundleEntrySortableCollection()
Standard contructor
public PortBundleEntrySortableCollection()
Fields
m_OrigCollection
protected PortBundlePrimaryCollection m_OrigCollection
Field Value
Properties
AllowEdit
public bool AllowEdit { get; }
Property Value
AllowNew
public bool AllowNew { get; }
Property Value
AllowRemove
public bool AllowRemove { get; }
Property Value
IsSorted
public bool IsSorted { get; }
Property Value
SortDirection
public ListSortDirection SortDirection { get; }
Property Value
SortProperty
public PropertyDescriptor SortProperty { get; }
Property Value
SupportsChangeNotification
public bool SupportsChangeNotification { get; }
Property Value
SupportsSearching
public bool SupportsSearching { get; }
Property Value
SupportsSorting
public bool SupportsSorting { get; }
Property Value
Methods
AddIndex(PropertyDescriptor)
public void AddIndex(PropertyDescriptor property)
Parameters
propertyPropertyDescriptor
AddNew()
public object AddNew()
Returns
ApplySort(PropertyDescriptor, ListSortDirection)
public void ApplySort(PropertyDescriptor property, ListSortDirection direction)
Parameters
propertyPropertyDescriptordirectionListSortDirection
FillFromPrimaryCollection()
Loads or reloads all entries from the owners collection. All Filter and sorts wll be reseted.
public virtual void FillFromPrimaryCollection()
FilterLocationID(int)
Filters the collection by removing all entries not matching the filter. The source collection keeps unchanged.
public virtual void FilterLocationID(int LocationID)
Parameters
LocationIDint
FilterProfileID(int)
Filters the collection by removing all entries not matching the filter. The source collection keeps unchanged.
public virtual void FilterProfileID(int ProfileID)
Parameters
ProfileIDint
Find(PropertyDescriptor, object)
public int Find(PropertyDescriptor property, object key)
Parameters
propertyPropertyDescriptorkeyobject
Returns
OnListChanged(ListChangedEventArgs)
protected virtual void OnListChanged(ListChangedEventArgs ev)
Parameters
RemoveIndex(PropertyDescriptor)
public void RemoveIndex(PropertyDescriptor property)
Parameters
propertyPropertyDescriptor
RemoveSort()
public void RemoveSort()
Sort(SortableAttributes)
public virtual void Sort(PortBundleEntrySortableCollection.SortableAttributes sorting)