Ejemplo n.º 1
0
 public DataSourceRow(DataSourceManager manager, object boundItem)
 {
     this.manager   = manager;
     this.boundItem = boundItem;
 }
Ejemplo n.º 2
0
 public DataSourceRow(DataSourceManager manager, object boundItem)
 {
     this.manager = manager;
     this.boundItem = boundItem;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
     }
 }