Is there something similar to Android RecyclerView for C # Winforms

I am currently working on a winforms application that shows contacts, but I have a memory problem.

For each contact, I create a panel with labels inside the name inside for the name and number, and I will add this to my main panel. Suppose I have 1000 contacts; I would create 1000 panels along with one main panel.

My problem is that although only 10 or so Panels (contacts) are visible in one panel on the main panel, I would still collect all 1000 panels that consume a lot of memory.

I want to create only the panel that is visible in the main panel. Ideally, I want something similar to RecyclerView in android . Is there any library that looks like this in C # or Winforms?

+5
source share
2 answers

You can use grids.

For example, devexpress grids can be configured in different ways and look like a ListView (display rows as maps, etc.).

https://www.devexpress.com/Products/NET/Controls/WinForms/Grid/

0
source

Winforms does not currently support views for viewing a list of views. For this, sme third-party suppliers offer appropriate solutions with controls. Try ObjectListView, which is open source. Its sourced in code-project

0
source

All Articles