コード例 #1
0
        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);
            var expression = CollectionViewModel.GetExpression(ViewModel.FilterCriteria);

            if (expression != null)
            {
                foreach (Employee employee in CollectionViewModel.GetEntities(expression))
                {
                    selection.Add(employee.Id);
                }
            }
            gridControl.DataSource = CollectionViewModel.GetList();
        }