写代码
Dim i As Integer = 1For Each dr As DataRow In DataTables("表a").Select("第一列 is not null", "第一列") dr("_Sortkey") = i i += 1NextDataTables("表a").replacefor("_Sortkey", Long.MaxValue , "第一列 is null")