Try this
sortingdirection = sortingdirection.Replace("Ascending","Asc").Replace("Descending","desc");
sortby = e.SortExpression & " " & sortingdirection
take care of syntax, as i dont know
VB
. but the issue is
Dataview
will accept the Sorting parameter as
ASC
and
DESC
only, but you are passing the
ENUM
as
Ascending
and
Descending
...
Hope you understood.