ListView.Rebind
Rebind(int)
Reprocesses the object at index sourceIndex
in the data source, invoking any
necessary PrefabProviderCallback<T> callbacks, added via
AddPrefabProvider<TData>(PrefabProviderCallback<Int32>), and triggering a Data.OnBind<TData> event
to refresh the list item content.
Remarks
Unlike Refresh(), Rebind(Int32) does not load new items if the rebind causes new content to become visible. If your call to Rebind(Int32) modifies the size of the target item, potentially requiring new items to be loaded, call Relayout() after Rebind(Int32) or use Refresh() instead.
Declaration
public void Rebind(int sourceIndex)
Parameters
Type | Name | Description |
---|---|---|
int | sourceIndex | The index of the object in the data source to rebind to the ListView |