I'm inserting a special (summary) row into a DataTable
, and I want it to appear last in a sorted DataView
. I know the DataView
is being sorted (ascending) by a particular string column, and for display purposes it doesn't matter what value appears in that column of the summary row.
What string can I place in that field to make sure my summary row gets sorted to the very end? For columns of nearly any other datatype, I could use T.MaxValue
, but there unfortunately is no System.String.MaxValue
constant.
I already tried
footerRow[colGrouping] = "\uFFFF";
but that sorted to the top! (DataView
sorting is lexicographical, not based on numeric value of the codepoint)