Hello Everyone,
I have datatable with list items. If Fullname usertype is 'Admin' then want output like 'Fullname(Admin)'.
Eg: Rajesh(Admin)
- objTble_accessLog = dt.AsEnumerable().Select(m => new Tble_accessLog()
- {
- accessLogId = m.Field
("accessLogId"), - FullName = m.Field<string>("FullName"),/* Here, If Fullname usertype is 'Admin' then want output like 'Fullname(Admin)' eg Rajesh(Admin)'*/
- AccessDate = m.Field<string>("AccessDate"),
- Action = m.Field<string>("Action")
- }).ToList();


Manas MohapatraRank #182 · 13.2K reputationPosted Dec 31, 2016, 9:58 PM EST