protected override IDataSetProvider CreateDataSetProvider(IBusinessObjectCollection col) { _dataSetProvider = new ReadOnlyDataSetProvider(col); _dataSetProvider.RegisterForBusinessObjectPropertyUpdatedEvents = true; return _dataSetProvider; }
private void GridLoaderDelegateSetDataSource(IGridBase grid, IBusinessObjectCollection col) { if (col == null) { grid.DataSource = null; return; } var dataSetProvider = new ReadOnlyDataSetProvider(col); IUIDef uiDef = ((ClassDef)col.ClassDef).GetUIDef(grid.UiDefName); grid.DataSource = dataSetProvider.GetDataView(uiDef.UIGrid); }
public override IDataSetProvider CreateDataSetProvider(IBusinessObjectCollection col) { ReadOnlyDataSetProvider dataSetProvider = new ReadOnlyDataSetProvider(col); dataSetProvider.RegisterForBusinessObjectPropertyUpdatedEvents = false; return dataSetProvider; }
public void GridLoaderDelegateLoadFromDiffCol(IGridBase grid, IBusinessObjectCollection col) { var dataSetProvider = new ReadOnlyDataSetProvider(_colToLoadFrom); IUIDef uiDef = ((ClassDef)col.ClassDef).GetUIDef(grid.UiDefName); var bindingListView = dataSetProvider.GetDataView(uiDef.UIGrid); grid.DataSource = bindingListView; }