private void InitializeGrid() { this.gridControl = new XCIGrid(); this.gridView = new DevExpress.XtraGrid.Views.Grid.GridView(); ((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).BeginInit(); // // gridControl // this.gridControl.MainView = this.gridView; this.gridControl.Name = "gridControl"; this.gridControl.TabStop = false; this.gridControl.ViewCollection.Add(this.gridView); this.gridControl.ProcessGridKey += this.gridControl_ProcessGridKey; this.gridControl.Location = new Point(-500, -500); this.gridControl.Size = new Size(100, 100); //this.gridControl.Load += gridControl_Load; // // gridView // this.gridView.GridControl = this.gridControl; this.gridView.Name = "gridView"; this.gridView.OptionsView.ShowGroupPanel = false; this.gridView.SelectionChanged += this.gridView_SelectionChanged; this.gridView.Click += this.gridView_Click; this.gridView.DoubleClick += this.gridView_DoubleClick; this.gridView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; this.gridView.OptionsSelection.MultiSelect = true; this.ButtonPressed += PopupEdit_ButtonPressed; ((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).EndInit(); ApplyFont(); }
public XCIPopupGrid() { grid = new XCIGrid(); view = new GridView(); popupContainer = new PopupContainerControl(); }