General information
Category:
The Mere Mortals .NET Framework
Title:
Problem with ApplySort
Environment versions
Network:
Windows 2008 Server
We're having a problem with ApplySort for an mmBindingList. Specifically, in some cases the following code crashes -- I've inserted what I think is the crash log below.
if (dt.Count > 0)
dt.ApplySort(e.SortPropertyName, dtDirect);
One example is e.SortPropertyName is "EFFECTIVE_BEGIN_DT", and it's a column of 4 datetime values. None of them seem to be null or anything special.
In some cases, the system just seems to lock up, rather than causing a proper exception. The problem can also happen on numeric column, but I haven't seen it happen on a text column yet.
It almost seems like ApplySort only works on string fields, although it doesn't seem to give a proper error message to that effect.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only