Spread for ASP.NET 9.0 Product Documentation
Name Property (DefaultSheetDataModel)
Example 


Gets or sets the name of the data model.
Syntax
'Declaration
 
Public Property Name As String
'Usage
 
Dim instance As DefaultSheetDataModel
Dim value As String
 
instance.Name = value
 
value = instance.Name
public string Name {get; set;}

Property Value

String containing the name
Exceptions
ExceptionDescription
System.ArgumentNullException No name is specified; name is a null reference (Nothing in Visual Basic)
Example
This example returns the name of the model.
FarPoint.Web.Spread.Model.DefaultSheetDataModel dsdm;

private void PageLoad(object sender, System.EventArgs e)
{
      dsdm = (FarPoint.Web.Spread.Model.DefaultSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
      Response.Write(dsdm.Name);
}
Friend WithEvents dsdm As FarPoint.Web.Spread.Model.DefaultSheetDataModel

Private Sub PageLoad(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      dsdm = FpSpread1.ActiveSheetView.DataModel
      Response.Write(dsdm.Name)
End Sub
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

DefaultSheetDataModel Class
DefaultSheetDataModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.