Quantcast
Channel: ListView Refresh/Repaint
Viewing all articles
Browse latest Browse all 2

ListView Refresh/Repaint

$
0
0

Hi all

 

I have just created a listview in which I have some text columns and one column with an image. Each row contains the data of an object like

 

class Item {

  string col1;

  string col2;

  Renderer col3;

}

 

The image come from a method of the Renderer class (3rd party product): GetImage(). This image will be displayed. The renderer object (col3) has an event handler DataChanged. If this method is executed, I would like to update the image displayed in the listview. Some update method which calls again the GetImage method to diplay the new image. Does anybody has an idea how to update the listview? I thought the listview will be automatically updated if there is a change in the data source, but in my case, this will not be done. I don't know why. It would be great if anybody can help me or have some additional links for this topic.

 

Many thanks in advance

 

David

 


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images