Spread for ASP.NET 9.0 Product Documentation
SetModelDataColumn Method (SheetView)
Example 


Model column index
Name of the data source column
Binds the model column to the data source column.
Syntax
'Declaration
 
Public Sub SetModelDataColumn( _
   ByVal column As Integer, _
   ByVal columnName As String _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim columnName As String
 
instance.SetModelDataColumn(column, columnName)
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.
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.SetModelDataColumn(0, "Owner");
sv.SetModelDataColumn(1, "State");
sv.SetModelDataColumn(2, "City");
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 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.