ComponentOne List for WinForms
Split Presentation / Scroll Groups
In This Topic
    Scroll Groups
    In This Topic

    By default, the vertical and horizontal scroll bars are displayed at the right-most or the bottom-most area in the list control. So, manipulating a single scroll bar causes all splits to scroll simultaneously. However, there might be a case where you want to scroll splits independently, without affecting the view of other splits. You can do so by creating scroll groups. A scroll group can contain any number of splits which scroll vertically or horizontally together, without affecting other splits in the list.

    The following images shows the appearance of List control after creating two scroll groups.

    split groups

    You can create horizontal and vertical split groups by using HorizontalScrollGroup and VerticalScrollGroup properties of the Split class, respectively. By default, all the splits in the List belongs to the same split group and the default split's HorizontalScrollGroup and VerticalScrollGroup properties are set to 1. But, you can change the split group properties to create split groups in the List control. For example, the following code showcases how to create two horizontal split groups.

    C#
    Copy Code
    this.c1List1.Splits[0,1].HorizontalScrollGroup = 2;