Linq map data

Hello,

I have to code for get data after map data as below.

If(dt.Asnumerable().Any(Function(r) r("Cate").Tostring.Trim = Str.catogory AndAlso r("Sub-Cate").Tostring.Trim = Str.subcatogory ), "**Match**","Unmatch"

Now If data have match output show match but I want to change output by get data from column name Remark

Please guide me for solve it.

Hi @fairymemay

You can use the below LINQ expression,

If(dt.Asnumerable().Any(Function(r) r("Cate").Tostring.Trim = Str.catogory AndAlso r("Sub-Cate").Tostring.Trim = Str.subcatogory ), r("Remark").toString,"Unmatch"

I have changed based on your requirement you can use the above expression.

Hope it helps!!