public DataSourceRow(DataSourceManager manager, object boundItem) { this._manager = manager; this._boundItem = boundItem; }
public void ClearGroups() { _dataSource = null; _groupTemplate.Column = null; //reset //FillGrid(null); }
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 override void Sort(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 void ClearGroups() { _dataSource = null; _groupTemplate.Column = null; //reset //FillGrid(null); }
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); } }
public DataSourceRow(DataSourceManager manager, object boundItem) { this._manager = manager; this._boundItem = boundItem; }