Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();


            StepsGrid.ConfigureSingleClickEditing();
            ResultsGrid.DisableSelection();
        }
Ejemplo n.º 2
0
        void SetStepsGridView()
        {
            GridViewDef view = new GridViewDef(GridViewDef.DefaultViewName);
            ObservableList <GridColView> viewCols = new ObservableList <GridColView>();

            view.GridColsView = viewCols;

            viewCols.Add(new GridColView()
            {
                Field = GherkinStep.Fields.Text, WidthWeight = 200, BindingMode = System.Windows.Data.BindingMode.OneWay
            });
            viewCols.Add(new GridColView()
            {
                Field = GherkinStep.Fields.AutomationStatus, WidthWeight = 60, BindingMode = System.Windows.Data.BindingMode.OneWay
            });

            StepsGrid.SetAllColumnsDefaultView(view);
            StepsGrid.InitViewItems();

            StepsGrid.RowChangedEvent += StepsGrid_RowChangedEvent;
        }