Custom ViewCells disappear in TableView
See original GitHub issueDescription
When using a ViewCell inside a TableView, it doesn’t show up or disappears during interaction with any of the other controls inside the TableView.
I have observed three different behaviors so far:
- The
ViewCelldoes not get rendered at all - The
ViewCellgets rendered for a split second and then disappears - The
ViewCellgets rendered, but disappears when interacting with any of the controls in theTableView
Steps to Reproduce
- Create a new MAUI App (.NET 6.0)
- Add a TableView incl. a TableRoot and TableSection to the MainPage (or any other page)
- Add a ViewCell to the TableSection
- Add a Grid with a Label and Button to the ViewCell
- Add a SwitchCell
- Run on an Android 12.0 device or emulator
Expected outcome: ViewCell with Label and Button is visible and remains visible Actual outcome: ViewCell and contents disappear/do not show up
Link to public reproduction project repository
https://github.com/ewerspej/dotnet-maui-bug-viewcell-disappears
Version with bug
Unknown/Other (please specify) dotnet --version says 7.0.100-rc.1.22431.12, but the project was created using .NET 6.0
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 12.0
Did you find any workaround?
No, so far without any success.
Relevant log output
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:8
- Comments:12 (1 by maintainers)
Top Results From Across the Web
UITableView Custom Cells Disappearing content after ...
In my case, what was happening was that I had not kept a strong pointer to the tableview's dataSource. So when the tableview...
Read more >custom cell is disappearing when tableview scrolls : r/swift
I solve this problem just with calling isHidden property for each element in the cell and explicitly set to false. So I ensure...
Read more >tableview with custom table view cells disappear on scroll-swift
I have a table view with custom tableview cells. Each may have different heights. Totally there are 14 rows but other rows are...
Read more >UITableView custom cell images disappear after scrolling.
I am in the process of creating my open grid view. I created a custom cell that looks like so: enter image description...
Read more >Table view cell issues
The issue is that I can't get my custom table view cell to show when simulating the app. I have gone through this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m having the same issue. Is TableView deprecated? Should we move on?
I have this trouble too.