Getting a Specific value from Datatable without using For Each loop

I already found the answer.
It took me some trial and error, I’m not sure if this is an efficient way but it is working and most importantly it is a one liner.
Of course we can access inside a Datatable using indexes such as myDT.Rows(0).Item(1).ToString,
but when using a search criteria such as SELECT inside a DataTable, we can use

myDT.Select(“Key=‘Name’”)(0).Item(1).ToString

Cheers Everyone!

4 Likes