Spread ASP.NET 16
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / DataModel Property
Example


In This Topic
    DataModel Property
    In This Topic
    Gets or sets the data for the sheet.
    Syntax
    'Declaration
     
    Public Property DataModel As ISheetDataModel
    'Usage
     
    Dim instance As SheetView
    Dim value As ISheetDataModel
     
    instance.DataModel = value
     
    value = instance.DataModel
    public ISheetDataModel DataModel {get; set;}

    Property Value

    ISheetDataModel object containing the data
    Exceptions
    ExceptionDescription
    Data model is null; must have some value
    Remarks
    This property is available at run time only.
    Example
    This example assigns a SheetView object to the active sheet, creates a new Model object and binds it to a database, then assigns the model to the SheetViews DataModel.
    See Also