True DBGrid for WinForms | ComponentOne
Split Presentation / Add and Remove Split
In This Topic
    Add and Remove Split
    In This Topic

    Splits can be added and removed using the RemoveHorizontalSplit, InsertHorizontalSplit, RemoveVerticalSplit, and RemoveHorizontalSplit methods. Each method takes a zero-based split index:

    C#
    Copy Code
    // Create a split with index 3.
    this.c1TrueDBGrid1.InsertVerticalSplit(3);
    // Remove the split with index 3.
    this.c1TrueDBGrid1.RemoveVerticalSplit(3);
    

    You can determine the number of splits in a grid using the SplitCollection Count property:

    C#
    Copy Code
    // Set variable equal to the number of splits in C1TrueDBGrid1.
    variable = this.c1TrueDBGrid1.Splits.Count;