Пример #1
0
        public void RemoveEmployeeFromArrangementShiftList()
        {
            ArrangementShiftEntities entity     = (ArrangementShiftEntities)CurrentModuleEntity;
            BandedGridView           bandedView = (BandedGridView)entity.EmployeeArrangementShiftsList.GridControl.MainView;

            if (bandedView.FocusedRowHandle >= 0)
            {
                int index = bandedView.GetDataSourceRowIndex(bandedView.FocusedRowHandle);
                entity.EmployeeArrangementShiftsList.RemoveAt(index);
                bandedView.RefreshData();
            }
        }