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


column
Column index for which type is requested

Glossary Item Box

Gets the column data type at the specified position.

Syntax

Visual Basic (Declaration) 
Public Function GetDataColumnType( _
   ByVal column As Integer _
) As Type
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetDataModel
Dim column As Integer
Dim value As Type
 
value = instance.GetDataColumnType(column)
C# 
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.
C#Copy Code
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 + "')");
Visual BasicCopy Code
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 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.