Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
获取或设置源列在数据源内的顺序位置。
Public Property SourceOrdinal As Integer
public int SourceOrdinal {get;set;}
指定数据源中列的顺序号的整数,未设置该属性时值为 -1。
SourceColumn 属性与 SourceOrdinal 属性相互排斥。最近设置的值优先。
设置 SourceColumn 属性会使 SourceOrdinal 属性被设置为 -1;设置 SourceOrdinal 属性会使 SourceColumn 属性被设置为空值引用(在 Visual Basic 中是 Nothing)。