Spread for ASP.NET 9.0 Product Documentation
GetDataColumnType Method
Example 


Column index for which type is requested
Gets the column data type at the specified position.
Syntax
'Declaration
 
Public Function GetDataColumnType( _
   ByVal column As Integer _
) As Type
'Usage
 
Dim instance As DefaultSheetDataModel
Dim column As Integer
Dim value As Type
 
value = instance.GetDataColumnType(column)
public Type GetDataColumnType( 
   int column
)

Parameters

column
Column index for which type is requested
Exceptions
ExceptionDescription
System.IndexOutOfRangeException Specified index is out of range; must be between 0 and the total number of columns
Example
This example returns the system type of the specified column.
FarPoint.Web.Spread.Model.DefaultSheetDataModel m = (FarPoint.Web.Spread.Model.DefaultSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
String msg = "The name is " + m.GetDataColumnType(1).ToString();
Response.Write("alert('" + msg + "')");
Dim m As FarPoint.Web.Spread.Model.DefaultSheetDataModel = FpSpread1.ActiveSheetView.DataModel
Dim msg As String = "The name is " + m.GetDataColumnType(1).ToString()
Response.Write("alert('" & msg & "')")
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.