public DataSourceRow(DataSourceManager manager, object boundItem) { this.manager = manager; this.boundItem = boundItem; }
public override void Sort(System.Collections.IComparer comparer) { if (dataSource == null) // if no datasource is set, then bind to the grid itself dataSource = new DataSourceManager(this, null); dataSource.Sort(comparer); FillGrid(groupTemplate); }
public override void Sort(DataGridViewColumn dataGridViewColumn, ListSortDirection direction) { if (dataSource == null) // if no datasource is set, then bind to the grid itself dataSource = new DataSourceManager(this, null); dataSource.Sort(new OutlookGridRowComparer(dataGridViewColumn.Index, direction)); FillGrid(groupTemplate); }
public void BindData(object dataSource, string dataMember) { this.DataMember = DataMember; if (dataSource == null) { this.dataSource = null; Columns.Clear(); } else { this.dataSource = new DataSourceManager(dataSource, dataMember); SetupColumns(); FillGrid(null); } }