| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As DefaultSheetDataModel Dim column As Integer Dim value As Type value = instance.GetDataColumnType(column) | |
Parameters
- column
- Column index for which type is requested
| Exception | Description |
|---|---|
| System.IndexOutOfRangeException | Specified index is out of range; must be between 0 and the total number of columns |
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 Basic | Copy 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 & "')") | |
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6