Spread ASP.NET 6.0 Product Documentation
SetModelDataColumn Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SetModelDataColumn Method


column
Model column index
columnName
Name of the data source column

Glossary Item Box

Binds the model column to the data source column.

Syntax

Visual Basic (Declaration) 
Public Sub SetModelDataColumn( _
   ByVal column As Integer, _
   ByVal columnName As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim columnName As String
 
instance.SetModelDataColumn(column, columnName)
C# 
public void SetModelDataColumn( 
   int column,
   string columnName
)

Parameters

column
Model column index
columnName
Name of the data source column

Example

This example illustrates the use of this member by setting the column to bind to the data source field.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.SetModelDataColumn(0, "Owner");
sv.SetModelDataColumn(1, "State");
sv.SetModelDataColumn(2, "City");
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.SetModelDataColumn(0, "Owner")
sv.SetModelDataColumn(1, "State")
sv.SetModelDataColumn(2, "City")

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.