예제 #1
0
        private void SetGridDataSource()
        {
            _gridControl.DataSource = new BindingList <ProjectWrapper>(ProjectWrapperBuilder.GetProjectWrappers().ToList());
            var gridView = ((GridView)_gridControl.MainView);

            gridView.FocusedRowHandle = GridControl.AutoFilterRowHandle;
        }
예제 #2
0
 GridBinder(GridControl gridControl, DXCoreEvents events)
 {
     _gridControl = gridControl;
     SetGridDataSource();
     events.ProjectItemRemoved += EventsOnProjectItemRemoved;
     events.ProjectItemAdded   += EventsOnProjectItemAdded;
     events.ProjectItemRenamed += EventsOnProjectItemRenamed;
     events.SolutionOpened     += SetGridDataSource;
     events.ProjectAdded       += project => AddProjectWrappers(ProjectWrapperBuilder.GetProjectWrappers(new List <Project> {
         project
     }));
     events.ProjectRemoved += project1 => RemoveProjectWrappers(ProjectWrapperBuilder.GetProjectWrappers(new List <Project> {
         project1
     }));
 }