SyntaxFix
Write A Post
Hire A Developer
Questions
var list = dataTable.Rows.OfType<DataRow>() .Select(dr => dr.Field<string>(columnName)).ToList();
[Edit: Add a reference to System.Data.DataSetExtensions to your project if this does not compile]
System.Data.DataSetExtensions