SourceOrdinal property

Specifies the ordinal position of the source column within the data source.

Syntax
Visual Basic
Public Property SourceOrdinal As Integer
C#
public int SourceOrdinal { get; set; }
Property value

An integer specifying the ordinal of the column in the data source or -1 if the property is not set.

Remarks

The SourceColumn and SourceOrdinal properties are mutually exclusive. The most recently set value takes priority.

Setting the SourceColumn property causes the SourceOrdinal property to be set to -1. Setting the SourceOrdinal property causes the SourceColumn property to be set to a null reference (Nothing in Visual Basic).

See also