Example #1
0
 public DataSourceRow(DataSourceManager manager, object boundItem)
 {
     this.manager   = manager;
     this.boundItem = boundItem;
 }
Example #2
0
 public DataSourceRow(DataSourceManager manager, object boundItem)
 {
     this.manager = manager;
     this.boundItem = boundItem;
 }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
 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);
     }
 }