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


row
Row index to search
column
Column index before the column to start searching (-1 to start at column 0)

Glossary Item Box

Gets the index of the next column in a specified row that contains data.

Syntax

Visual Basic (Declaration) 
Public Overrides Function NextNonEmptyColumnInRow( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As GroupDataModel
Dim row As Integer
Dim column As Integer
Dim value As Integer
 
value = instance.NextNonEmptyColumnInRow(row, column)
C# 
public override int NextNonEmptyColumnInRow( 
   int row,
   int column
)

Parameters

row
Row index to search
column
Column index before the column to start searching (-1 to start at column 0)

Example

This example changes the forecolor of the returned column 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.NextNonEmptyColumnInRow(2, 2);
fpSpread1.ActiveSheet.Columns[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.NextNonEmptyColumnInRow(2, 2)
FpSpread1.ActiveSheet.Columns(i).ForeColor = Color.Red

Requirements

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

See Also

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