Read value by column name in C#

Hi There,

I have collection of data in excel sheet and store it in a datatable= ‘dtConfigfile’

Does anyone here know how to translate the code from vb.net into c#

vb.net
dtConfigFile.Select(“Name=‘Connection String’”)(0)(1).ToString

HI,

Can you try the following?

dtConfigFile.Select("Name='Connection String'")[0][1].ToString()

Regards,