Spread Windows Forms 11.0 Product Documentation
SheetView Constructor(ISheetDataModel)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SheetView Constructor : SheetView Constructor(ISheetDataModel)
Data model
Creates a sheet (SheetView object) according to a specified data model.
Syntax
'Declaration
 
Public Function New( _
   ByVal dataModel As ISheetDataModel _
)
'Usage
 
Dim dataModel As ISheetDataModel
 
Dim instance As New SheetView(dataModel)
public SheetView( 
   ISheetDataModel dataModel
)

Parameters

dataModel
Data model
Example
This example creates a SheetView object, adds it to the collection of sheets, and applies it to the active sheet.
Dim dm As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(4, 4)
Dim sv As New FarPoint.Win.Spread.SheetView(dm)
FpSpread1.Sheets.Add(sv)
FpSpread1.ActiveSheet = sv
FarPoint.Win.Spread.Model.DefaultSheetDataModel dm = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(4, 4);
FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView(dm);
fpSpread1.Sheets.Add(sv);
fpSpread1.ActiveSheet = sv;
See Also

Reference

SheetView Class
SheetView Members
Overload List

User-Task Documentation

Adding a Sheet