SourceOrdinal property

Gets or sets ordinal position of the source column within the data source.

Visual Basic syntax

Public Property SourceOrdinal As Integer

C# syntax

public int SourceOrdinal {get;set;}

Remarks

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

The SourceColumn property and SourceOrdinal property 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).