Hi guys,
I have bit of a problem with displaying a list of objects along with their IDs (unique identifiers) in the DataGrid. So, DataGrid shows properties of selected objects correctly, but I cannot associate ID (which is long) with the objects and not to show it in the grid.
Here is an example (I am using Eloquera DB):
Dictionary<long, User> idUsers = new Dictionary<long, User>();
var users = db.ExecuteQuery("SELECT User WHERE Active = true");
foreach (var user in users)
idUsers.Add(db.GetUid(user), user as User);
I need to use this ID to get access to the same object on the postback (e.g., for delete or update).
Is there any way to store that ID without showing it in DataGrid?