Below is my bindingSource.
pics_Data_HistoryBSForCounts.DataSource = from dh in dataCtx.Pics_Data_Histories
join ui in dataCtx.User_Infos on dh.User_Id equals ui.user_id into ui_dh
from ui_dh1 in ui_dh.DefaultIfEmpty()
where dh.Changed_Date >= fromDate && dh.Changed_Date <= toDate
group ui_dh1 by ui_dh1.user_name into grouped
select new { UserName = grouped.Key.Trim(), Count = grouped.Count(a => a.user_name != null), UserID = grouped.FirstOrDefault().user_id };
I want to get the UserID of the current record.
var userRecord = pics_Data_HistoryBSForCounts.Current;
I get the current records as a string. Is there any way to get a property value?
Thanks!