# XAF Listview is empty when there are records

**URL:** <https://discourse.softwarebydesign.com.au/t/xaf-listview-is-empty-when-there-are-records/1669>\
**Category:** Code\
**Tags:** xaf-entity-framework\
**Created:** [30 April 2019 23:43 UTC](https://discourse.softwarebydesign.com.au/t/xaf-listview-is-empty-when-there-are-records/1669 "2019-04-30T23:43:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirsten\_Greed](https://discourse.softwarebydesign.com.au/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@Kirsten\_Greed](https://discourse.softwarebydesign.com.au/u/Kirsten_Greed)\
**Post date:** [30 April 2019 23:43 UTC](https://discourse.softwarebydesign.com.au/t/xaf-listview-is-empty-when-there-are-records/1669/1 "2019-04-30T23:43:53Z")

</div>

I have seen this happen when my entity model is not quite correct.

For example if the Key is Int16 and I declared it as Int

However it also seems a problem if the columnname is too long

For example

```c#
    public bool ExcludeFromPrioritizeByDueByDate { get; set; }

```

I [asked about it on Stack Overflow and Dev Express](https://www.devexpress.com/Support/Center/Question/Details/T737259/listview-shows-as-empty-when-there-is-a-long-column-name-in-the-model)
