Hi All
I have a WinGrid with a status column that displays an image based on the value in another column. I have used the following information for the sorting of the image column:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7695
My challenge now, is that I'm writing a custom function to copy the grid data to the clipboard. When I try to get the value of one of the cells in the image column, it is, of course, "System.Drawing.Image".
Is there some way I can interrogate the columns' SortComparer and find out what the value column is so I can get the value of that cell? Or some other way I can handle this?
Thanks in advance!
Hi,
I'm a little confused by your question. I assume if you are copying the grid data to the clipboard, you are looping through the grid rows. In such a case, why don't you simply ignore the image column and use the real data columns value?
Hi Mike - Thanks for the reply
The issue is that the function will be used for multiple grids, some which have image columns and some without (some with multiband, others with single band, etc), So I can't hard code what the 'real data column' is, which is why I'm trying to get the real data column through the sort comparer of the image column...
Because I always use custom sort comparers for columns containing images in these cases, I'm trying to find a way to get the values from the column i'm sorting by, rather than the image column itself...
At this point, I just make sure to use the sort comparison column's key in the .tag of the image column, so that if a image column has a .tag with a corresponding column, to take that columns value instead, but I was hoping I could find another way where I didn't need to rely on the .tag value...
Any thoughts?