Get all values of a column from a DataSet

c#, dataset

Solution

Only by iterating over the rows, as Utaal noted in this answer.

You might expect that the `DataTable.DefaultView.RowFilter` would support grouping, but it does not (it mainly offers the equivalent functionality of a `Where` clause, with some basic aggregations - though not simple grouping).

Problem

In C#, is it possible to get all values of a particular column from all rows of a DataSet with a simple instruction (no LINQ, no For cicle)?

Original source