Firstly, instead of your group consisting of DataRows, since you want to show only words, I would select the words you want from datarow. Secondly, remember that the words are on the list. If you want to print them, you will need to loop or do something like string.Join (as I do below). For instance:
var wordGroups = from w in words4.Select(w => w.Field<string>("word")) group w by w[0] into g select new { FirstLetter = g.Key, Words = g }; foreach (var g in wordGroups) { Console.WriteLine("Words that start with the letter '{0}':", g.FirstLetter); Console.WriteLine(string.Join(", ", g.Words)); }
source share