Spread for ASP.NET 7.0 Product Documentation
GetViewColumnFromModelColumn Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetViewColumnFromModelColumn Method


column
Model column index

Glossary Item Box

Gets the sheet column index for a specified model column.

Syntax

Visual Basic (Declaration) 
Public Function GetViewColumnFromModelColumn( _
   ByVal column As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim value As Integer
 
value = instance.GetViewColumnFromModelColumn(column)
C# 
public int GetViewColumnFromModelColumn( 
   int column
)

Parameters

column
Model column index

Return Value

Integer column index in the sheet corresponding to the specified column in the model

Example

This example returns the sheet column index for a specified model column.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
int i;
i = sv.GetViewColumnFromModelColumn(0);
Response.Write("The index is " + i.ToString());
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
Dim i As Integer
i = sv.GetViewColumnFromModelColumn(0)
Response.Write("The index is " & i.ToString())

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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