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 MohapatraPosted Jan 1, 2017, 2:58 AM