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
255
Grouping by Image columns
posted

In UltraWingrid, i want to perform grouping by a column that contains images. For more details, please look into the file attached (GroupingByImageColumns.rar). I am using Infragistics version 8.1 (with service release - NetAdvantage_20081_CLR2X_WIN_SR_2161).

GroupingByImageColumns.rar
Parents
  • 469350
    Suggested Answer
    Offline posted

    The DotNet Image class is not IComparable. So the grid cannot automatically group by images - it has no way to know that one image is the same as another image.

    If you can tell from the image, or from some other data in the row, that the images are the same, then you could acheive what you want by writing your own IGroupByComparer class and applying it to the GroupByComparer property of the column. This allow you to tell the grid which images are the same.

    You will probably need to write a SortComparer for the column, too, so that the rows are sorted properly by image.

Reply Children