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 achive this?
P.S. data is not a datatable but a generic list of myDAL.UsersRow