Error ordering Gridview with empty row column

Asked

Viewed 166 times

0

There is an error here that I am not knowing how to get around, as my program reads a site, sometimes the site can escape from the pattern and end up leaving some empty things, so when my Gridview tries to order, if there are any empty items by the looks he is bugging...

Here’s what’s going on:

  • 1

    If you put in the code maybe someone who understands can help you. The way you are is hard to guess your problem.

  • 1

    Provide more details so we can analyze the problem

1 answer

1

Your question is not clear enough, so I’m going to kick over what might be going on based on your mistake.

That is to say, icomparable interface

This interface is implemented by types whose values can be sorted or sorted.It requires the implementation types to define a single method, Compareto(Object), indicating whether the position of the current instance in the classification order 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 Compareto(Object) method implementation should return an Int32 that has one of the three values, as shown in the following table

Summarizing your object must be null and does not implement the icomparable interface and cannot be compared with the object of the current instance.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.