public MainWindow() { InitializeComponent(); StepsGrid.ConfigureSingleClickEditing(); ResultsGrid.DisableSelection(); }
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; }