protected override void OnGridViewMouseDown(UxGridView gridView, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { base.OnGridViewMouseDown(_gridView, e); } else if (e.Button == MouseButtons.Right) { //valid parameter? var parameterDTO = _gridViewBinder.ElementAt(_gridView.RowHandleAt(e)); if (parameterDTO == null) { return; } _gridView.PostEditor(); ShowPopup(parameterDTO, e.Location); } }
public void Initialize(UxGridView gridView) { _gridView = gridView; _gridView.HiddenEditor += (o, e) => hideEditor(); _gridView.ShowingEditor += onShowingEditor; _gridView.RowCellStyle += updateRowCellStyle; _gridView.GridControl.ToolTipController = _toolTipController; _gridView.GroupFormat = "[#image]{1}"; _gridView.EndGrouping += (o, e) => _gridView.ExpandAllGroups(); _comboBoxUnit = new ComboBoxUnitParameter(_gridView.GridControl); _favoriteRepository = new UxRepositoryItemCheckEdit(_gridView); _discreteParameterRepository = new UxRepositoryItemImageComboBox(_gridView, _imageListRetriever) { LargeImages = _imageListRetriever.AllImages16x16 }; InitializeWithGrid(_gridView); _gridViewBinder = new GridViewBinder <ParameterDTO>(_gridView) { ValidationMode = ValidationMode.LeavingRow, BindingMode = BindingMode.OneWay }; }
private void initGridView(UxGridView gridView) { gridView.ShouldUseColorForDisabledCell = false; gridView.AllowsFiltering = false; gridView.MultiSelect = true; }
public DataTable MapFrom(UxGridView gridView, int[] selectedRows, Func <int, GridColumn[]> columnsForRowRetriever) { return(mapNewTable(gridView, selectedRows.ContainsItem, columnsForRowRetriever)); }