Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
How to Sort if Grid is having an image on the GridColumn
posted

I am having a ultraWinGrid and having 10 columns in that. One of the column having Image. I am also having Sort Indicator on every column.This sort Indicator is not working for the Image Grid Column and rest of the columns are sorting fine. Any help much appriciated.Is there any way that i can sort Images on the Grid Column.

  • 37774
    posted

    There is no way for the grid to know how to deal with sorting images, since any algorithm used would be completely arbitrary.  What you would need to do is create a class that implements IComparer and assign an instance of this class to the SortComparer property of the image column, and have this class determine which images are "larger or smaller" than other images.

    -Matt