What I have right now is this:
Dim users = From users In tempTable _
Distinct Select users.Item("s_userid")
Dim usersCount As Integer = users.Count
But I pretty sure I shouldn’t have to do that. I should be able to get the count in/from that first linq query. What am I missing?
Another method would be to group the DataRows by your UserID-Column:
The “native” ADO.NET approach:
http://msdn.microsoft.com/en-us/library/wec2b2e6%28v=vs.100%29.aspx