![]() LeftCoord - specifies the offset by which the View is scrolled horizontally.GridView.MakeColumnVisible(GridColumn) - scrolls the View left or right to make the given column visible on-screen.GridView.HorzScrollStep - allows you to change the horizontal scroll speed.GridView.HorzScrollVisibility - allows you to show and hide the scroll bar.You can use the following settings to modify this scroll bar and/or manually scroll the View. In these cases, a horizontal scroll bar appears. If the GridOptionsView.ColumnAutoWidth setting is disabled, Grid columns can occupy more space than the control provides. ![]() If you are using the mouse, it will also appear when the pointer moves over the grid so you can scroll the grid by dragging the scrollbar thumb too. This mode implies that you scroll using gestures, and the scrollbar simply indicates the current position and then automatically fades out. WindowsFormsSettings.ScrollUIMode = ScrollUIMode.Touch ![]() To change the scrollbar style, go to code, make sure to reference the XtraEditors namespace and then set the WindowsFormsSettings.ScrollUIMode option to ScrollUIMode.Touch in the Form’s constructor. This is a classic scrollbar representation and many modern applications use a touch-enabled scrollbar version. Set the View’s GridView.VertScrollVisibility property to ScrollVisibility.Always to reserve space for the scrollbar even if scrolling is not required. Now notice that if you collapse all group rows, the vertical scrollbar automatically disappears as it’s no longer needed. Run the application now to see that scrolling is now smooth thus allowing for rows to be partially visible. To enable pixel scrolling, access the grid View’s properties, expand GridView.OptionsBehavior and set GridOptionsBehavior.AllowPixelScrolling to true. In other words, the default scrolling step is one row. When you scroll the View vertically, you can notice how the first row in the View is always fully displayed. The tutorial will also describe the API that you can use to scroll the View or respond to end-user scrolling operations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |