I need to retrieve a set of "TOP n" number of rows from a DataTable where the table rows are Ordered By "Column X", but only if value of "Column X" for a row is greater than a provided comparison value. This is what I have so far:
EnumerableRowCollection query = from history in dt.AsEnumerable()
where history.Field<string>("Column X") > "Value-To-Compare")
orderby history.Field("Column X")
select history;
But I keep on getting "Operator '>' cannot be applied to operands of type 'string' and 'string'"
Any Thoughts?
fuzzlog