Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I've binded a DataGridView which contains image as one of the field.

So I used Image list for images. My Imagelist contains only 4 images.
So I need to compare the cell containing images with the images list containing 4 images.

C#
bool isContaining;
for(int i=0;i<Imagelist.Images.Count;i++)
{
if(Datagridview[Column,Row]==Imagelist.Images[i])
    isContaining=true;
}


How to Do this type of comparison.
Posted
Updated 11-Dec-14 19:51pm
v2
Comments
vijay chander 13-Dec-14 1:34am    
What you want to compare is Image to Image? or cells and image?
KUMAR619 15-Dec-14 0:35am    
I want to compare cells containing image with image stored in the image list.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900