[]
        
(Showing Draft Content)

C1.Mac.DataCollection.C1TableViewSource

C1TableViewSource Class

This class is the bridge between AppKit.NSTableView and C1DataCollection<T>. Using this class you'll get built-in sort, filter, grouping, refresh and load-on-demand features.

Inheritance
C1TableViewSource
Namespace: C1.Mac.DataCollection
Assembly: C1.Mac.DataCollection.dll
Syntax
public class C1TableViewSource : NSTableViewSource
Remarks

Inherit this class and implement GetItemCell and GetGroupTitle to set the cell appeareance as you wish.

Constructors

Name Description
C1TableViewSource(NSTableView)

Initializes a new instance of the C1TableViewSource class.

Properties

Name Description
AutoGenerateColumns

Gets or sets a value indicating whether the columns are generated from the properties of the source.

Converter

Gets or sets the converter that is used to display the values of the cells.

DataCollection

Gets the collection which provides the data items.

ItemsSource

Gets or sets the collection view which provides the data items.

TableView

Gets the table view used to display the items.

Methods

Name Description
GetGroupView(NSTableView, IDataCollectionGroup<object, object>)
GetItemRowHeight(NSTableView, nint)

Gets the height of the item rows.

GetItemView(NSTableView, NSTableColumn, object)
GetRowCount(NSTableView)
GetRowHeight(NSTableView, nint)
GetRowView(NSTableView, nint)
GetViewForItem(NSTableView, NSTableColumn, nint)
IsGroupRow(NSTableView, nint)
SortDescriptorsChanged(NSTableView, NSSortDescriptor[])