作者:Bqiwei12890 | 来源:互联网 | 2023-09-10 15:59
ForEachdrAsmyDAL.UsersRowIndatastr.AppendLine(dr.UserName)NextIntheabovecode,Ials
For Each dr As myDAL.UsersRow In data
str.AppendLine(dr.UserName)
Next
In the above code, I also need to include the row index so that it's something like
在上面的代码中,我还需要包含行索引,以便它就像
str.AppendLine(dr.IndexNumber & " " & dr.UserName)
How can I achieve this?
我怎样才能做到这一点?
P.S. data
is not a DataTable
but a generic list of myDAL.UsersRow
附: data不是DataTable,而是myDAL.UsersRow的通用列表
2 个解决方案