定期重置SortKey列:
Dim cnt As IntegerFor Each dr As DataRow In DataTables("表A").Select("","_SortKey") dr.BaseRow("_SortKey") = cnt cnt = cnt + 1Next