Spread Windows Forms 11.0 Product Documentation
Data Property (SheetView.DocumentModels)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView.DocumentModels Class : Data Property
Gets or sets the data model.
Syntax
'Declaration
 
Public Property Data As ISheetDataModel
'Usage
 
Dim instance As SheetView.DocumentModels
Dim value As ISheetDataModel
 
instance.Data = value
 
value = instance.Data
public ISheetDataModel Data {get; set;}

Property Value

ISheetDataModel object containing the data model
Exceptions
ExceptionDescription
Model is not specified (or specified value is null)
Example
This example specifies the data for the first cell.
FarPoint.Win.Spread.SheetView.DocumentModels dm = new FarPoint.Win.Spread.SheetView.DocumentModels();
dm = fpSpread1.ActiveSheet.Models;
dm.Data.SetValue(0, 0, "DataTest");
Dim dm As New FarPoint.Win.Spread.SheetView.DocumentModels()
dm = FpSpread1.ActiveSheet.Models
dm.Data.SetValue(0, 0, "DataTest")
See Also

Reference

SheetView.DocumentModels Class
SheetView.DocumentModels Members