Spread Windows Forms 6.0 Product Documentation
NextNonEmptyRow Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > GroupDataModel Class : NextNonEmptyRow Method


row
Row index after which to start searching (-1 to start at row 0)

Glossary Item Box

Gets the index of the next row that contains data.

Syntax

Visual Basic (Declaration) 
Public Overrides Function NextNonEmptyRow( _
   ByVal row As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As GroupDataModel
Dim row As Integer
Dim value As Integer
 
value = instance.NextNonEmptyRow(row)
C# 
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.
C#Copy Code
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;
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.