# Data set in UUserWidget is reset when it is added to viewport

**URL:** <https://forums.unrealengine.com/t/data-set-in-uuserwidget-is-reset-when-it-is-added-to-viewport/1977938>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 16, 2024, 3:27am UTC](https://forums.unrealengine.com/t/data-set-in-uuserwidget-is-reset-when-it-is-added-to-viewport/1977938 "2024-08-16T03:27:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 21, 2024, 9:58pm UTC](https://forums.unrealengine.com/t/data-set-in-uuserwidget-is-reset-when-it-is-added-to-viewport/1977938/3 "2024-08-21T21:58:16Z")

</div>

Hello there,

I think you misunderstand how List View is used.

You don’t set widgets directly - you add ListItems to the List View and let the List View handle its internal widgets (which fill their own data when the List View supplies it to them) The whole idea is that you can have thousands of data only List Items but only a few widgets - the ones you currently see. When a widget is scrolled out it is reused and filled with the next item’s data.

It’s a bit complicated and I can’t explain it in short but luckily there is a great post about it:

> [@Quick-Start guide to List View widget](https://forums.unrealengine.com/t/quick-start-guide-to-list-view-widget/738161):
>
> This post is intended to be a quick-start guide to get List View up and running with simple add, edit, and remove functionality. For more advanced stuff, you may have to find another forum post to help with that. None of this will be groundbreaking information, it’s mostly information that me, from 2 weeks ago, would’ve liked to have as a reference when first getting into all of this. This only applies to List View and Tile View I have not experimented with Tree View, but maybe I’ll try work…

---

_[View the full topic](https://forums.unrealengine.com/t/data-set-in-uuserwidget-is-reset-when-it-is-added-to-viewport/1977938)._
