Help to deal with scrolling in DevExpress.XtraGrid.GridControl (version 13.2 component). I need horizontal scrolling to work, and now, in fact, when I make columns wider, scrolling does not work. Although I have GridView.HorzScrollVisibility = Always; GridView.HorzDcrollStep = 1; GridView.ScrollStyle = LiveHorzScroll; GridView.OptionsView.ColumnAutoWidth = False; Elementary thing, but does not work as it should.
- I am able to use search. :-) I have written that ColumnAutoWidth = False. And he just had ColumnAutoWidth = true (ColumnAutoWidth option checked): OptionsView property. It doesn’t need to be seen. - DHel
- Yeah, I was in a hurry ... add to the question the minimum sufficient portion of your code to reproduce the problem, so it is not immediately guessed what the catch is. - Alias
- There everything is standard practically - the parameters are set in the component, the grid is not visible at first, then it is attached to it and it becomes visible. You can substitute your own, and the default properties are: this.gridControl.Anchor = (((System.Windows.Forms.AnchorStyles ) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gridControl.Location = new System.Drawing.Point (0, 88); - DHel
- this.gridControl.MainView = this.gridView; this.gridControl.Name = "gridControl"; this.gridControl.Size = new System.Drawing.Size (1225, 452); this.gridControl.TabIndex = 4; this.gridControl.ViewCollection.AddRange (new DevExpress.XtraGrid.Views.Base.BaseView [] {this.gridView}); this.gridControl.Visible = false; - DHel
- 2The code must be in question ( edit ). - rdorn
|