A C1List object initially contains a single horizontal split. If additional splits are created, you can determine or set the current split (that is, the split that has received focus) using the list's Split property:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
' Read the zero-based index of the current split. Variable = Me.C1List1.Split ' Set focus to the split with an index equal to Variable. Me.C1List1.Split = Variable |
To write code in C#
C# |
Copy Code
|
---|---|
// Read the zero-based index of the current split. Variable = this.c1List1.Split; // Set focus to the split with an index equal to Variable. this.c1List1.Split = Variable; |
Each split in a list is a different view of the same data source, and behaves just like an independent list. If you create additional splits without customizing any of the split properties, all splits will be identical and each will behave very much like the original list with one split.
Note that some properties are supported by both the C1List and Split objects. Three rules of thumb apply to properties that are common to a list and its splits:
To understand how these rules work in code, consider a list with two horizontal splits, and assume that the current split index is 1.