I would like to know If It\'s possible to create a \"one-line\" Linq to retrieve longest string value of specific Datatable column, meaning that all column data (numbers, dates,
First of all do not use AsEnumerable right after dt.. Write somehow like this:
AsEnumerable
dt.
dt.OrderByDescending(row => row[mycolumn].Length).First();