Error sorting GridView with empty row column [closed]

0

You're making a mistake here that I'm not sure how to circumvent, since my program reads a website, sometimes the site can get out of the norm and end up leaving something empty, so when my GridView tries to sort, since it is bugging ...

Here's what's happening:

    
asked by anonymous 06.09.2016 / 11:44

1 answer

1

Your question is not clear enough, so I'll kick whatever may be happening based on your mistake.

That is, IComparable interface

This interface is implemented by types whose values can be sorted or sorted. It requires that the implementation types define a single method, # , which indicates whether the position of the current instance in the order of classification is before, after, or the same as a second object of the same type.

The implementation of the IComparable instance is automatically called by methods, such as Array.Sort and ArrayList.Sort .

The implementation of the CompareTo (Object) method should return an Int32 that has one of three values, as shown in the following table

Summarizing your object should be null and does not implement the IComparable interface and can not be compared to the object of the current instance.     

06.09.2016 / 14:29