Spread Windows Forms 10.0 Product Documentation
Groups Property
Example 


Gets the list of top-level group objects.
Syntax
'Declaration
 
Public ReadOnly Property Groups As ArrayList
'Usage
 
Dim instance As GroupDataModel
Dim value As ArrayList
 
value = instance.Groups
public ArrayList Groups {get;}

Property Value

ArrayList containing the groups
Example
This example returns the column index of the first group.
fpSpread1.AllowColumnMove = true;
fpSpread1.ActiveSheet.GroupBarInfo.Visible = true;
fpSpread1.ActiveSheet.AllowGroup = true;

 private void button1_Click(object sender, EventArgs e)
        {
            FarPoint.Win.Spread.Model.GroupDataModel gdm;
            gdm = (FarPoint.Win.Spread.Model.GroupDataModel)fpSpread1.ActiveSheet.Models.Data;
            textBox1.Text = ((FarPoint.Win.Spread.Model.Group)gdm.Groups[0]).Column.ToString();         
        }
FpSpread1.AllowColumnMove = True
FpSpread1.ActiveSheet.GroupBarInfo.Visible = True
FpSpread1.ActiveSheet.AllowGroup = True

 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim gdm As FarPoint.Win.Spread.Model.GroupDataModel
        gdm = FpSpread1.ActiveSheet.Models.Data
        TextBox1.Text = gdm.Groups(0).Column.ToString()
    End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GroupDataModel Class
GroupDataModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.