This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Returns the ordinal of the given column name.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(Name = "{0}.Columns.GetOrdinal")]
public static int ColumnsGetOrdinal(
	 dataTable,
	string columnName
)
Visual Basic (Declaration)Copy imageCopy Code
<(Name := "{0}.Columns.GetOrdinal")> _
Public Shared Function ColumnsGetOrdinal ( _
	dataTable As , _
	columnName As  _
) As Integer

Parameters

dataTable
SXMLDataTable
The datatable.
columnName
String
The column name whose ordinal is returned.

Return Value

Returns -1 if the column name does not exist.

See Also

Advanced