M
mdb
I have a datagrid that is bound to a DataView, and it shows events and the
times that event started ("StartTime") and stopped ("EndTime"). If the event
has started but hasn't finished, then "EndTime" is null. When multiple lines
are displayed in the datagrid, if I sort by EndTime, then the null values end
up sorted incorrectly - they are sorted as if 'null' is minimum - but I need
them to sort as if 'null' is maximum...
Any suggestions? I cannot sort by StartTime (the description above is
simplified).
times that event started ("StartTime") and stopped ("EndTime"). If the event
has started but hasn't finished, then "EndTime" is null. When multiple lines
are displayed in the datagrid, if I sort by EndTime, then the null values end
up sorted incorrectly - they are sorted as if 'null' is minimum - but I need
them to sort as if 'null' is maximum...
Any suggestions? I cannot sort by StartTime (the description above is
simplified).