Spread ASP.NET 6.0 Product Documentation
Name Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > DefaultSheetDataModel Class : Name Property


Glossary Item Box

Gets or sets the name of the data model.

Syntax

Visual Basic (Declaration) 
Public Property Name As String
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetDataModel
Dim value As String
 
instance.Name = value
 
value = instance.Name
C# 
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.
C#Copy Code
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);
}
Visual BasicCopy Code
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.