Spread Windows Forms 9.0 Product Documentation
NextNonEmptyRow Method (GroupDataModel)
Example 


Row index after which to start searching (-1 to start at row 0)
Gets the index of the next row that contains data.
Syntax
'Declaration
 
Public Overrides Function NextNonEmptyRow( _
   ByVal row As Integer _
) As Integer
'Usage
 
Dim instance As GroupDataModel
Dim row As Integer
Dim value As Integer
 
value = instance.NextNonEmptyRow(row)
public override int NextNonEmptyRow( 
   int row
)

Parameters

row
Row index after which to start searching (-1 to start at row 0)
Example
This example changes the forecolor of the returned row in the group.
FarPoint.Win.Spread.Model.GroupDataModel gm;
gm = (FarPoint.Win.Spread.Model.GroupDataModel)fpSpread1.ActiveSheet.Models.Data;
int i = gm.NextNonEmptyRow(2);
fpSpread1.ActiveSheet.Rows[i].ForeColor = Color.Red;
Dim gm As FarPoint.Win.Spread.Model.GroupDataModel
gm = FpSpread1.ActiveSheet.Models.Data
Dim i As Integer = gm.NextNonEmptyRow(2)
FpSpread1.ActiveSheet.Rows(i).ForeColor = Color.Red
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.