I have an object "User"
public class User
{
public string UserName { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string LastRequestId { get; set; }
}
In the main program I have a ConcurrentDictionary "UserList" (read/write by multiple threads)
private ConcurrentDictionary<string, User> UserList;
Is there a way to display the ConcurrentDictionary in a DataGridView?
-------------------------------------------------------
| Username | First Name | Last Name | Last Request Id |
-------------------------------------------------------
| User_1 | John | Smith | REQ_000123 |
-------------------------------------------------------
| User_2 | Jane | Doe | REQ_000124 |
-------------------------------------------------------
| User_3 | Will | Iam | REQ_000125 |
-------------------------------------------------------
| User_4 | Robert | New | REQ_000126 |
-------------------------------------------------------
The list should display real time data