[CLOSED] Datarepetear picturebox showing prior pictures while scrolling

Closed
0
0

I have a datarepeater that has a picturebox in the itemtemplate, when I scroll down I see prior pictures showing in the next records.

My Code:

private void drCatalog_ItemUpdate(object sender, DataRepeaterItemEventArgs e)
{
var dri = e.DataRepeaterItem;
var pb = (PictureBox)dri.Controls.First(x => x.Name == “pbItemPic”);
if (parts[dri.ItemIndex].EXTFILENAME != null)
pb.Image = Image.FromFile(parts[dri.ItemIndex].EXTFILENAME);
else
pb.Image = global::PriShop.Properties.Resources.NoImage;
}

  • You must to post comments
0
0

I have attached the project, when I scroll through the datarepeater I can see that images are replaced by other images and while
scrolling I can see the image changing to prior images and then truning back to the relevant image.

P.S
You need to a add a reference to:
Newtonsoft.Json.12.0.3
RestSharp.106.6.10

Attachment
  • You must to post comments
0
0

Eyal,

can you please share a test case as I cannot yet reproduce.
Either post it here or send it to frankATiceteagroup.com please.

Thanks in advance !

Best regards
Frank

  • You must to post comments
0
0

Yes it’s version 2.1.13

  • You must to post comments
0
0

Eyal,

there have been similar problems in an older Wisej build.
Just to make sure: Are you using the latest build (2.1.13)?

Best regards
Frank

  • You must to post comments
0
0

See the attached movie how pictures in record 2,3 are showen when scrolling and the disappering

Attachment
  • You must to post comments
Showing 5 results