# Listbox - HeaderAt

**URL:** <https://forum.xojo.com/t/listbox-headerat/78939>\
**Category:** Windows\
**Created:** [January 22, 2024, 9:38pm UTC](https://forum.xojo.com/t/listbox-headerat/78939 "2024-01-22T21:38:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sacha\_Donati](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@Sacha\_Donati](https://forum.xojo.com/u/Sacha_Donati)\
**Post date:** [January 22, 2024, 9:38pm UTC](https://forum.xojo.com/t/listbox-headerat/78939/1 "2024-01-22T21:38:23Z")

</div>

When I set the headings in the listbox, only the first 5 columns and the last one are displayed. Why?

The code:

```auto
ListBoxItemsServer.ColumnWidths = "30,80,80,80,80,80,80,80,80,80,80"

ListBoxItemsServer.HeaderAt(0)="#"
ListBoxItemsServer.HeaderAt(1)="Value"
ListBoxItemsServer.HeaderAt(2)="Attribute 0"
ListBoxItemsServer.HeaderAt(3)="Attribute 1"
ListBoxItemsServer.HeaderAt(4)="Attribute 2"
ListBoxItemsServer.HeaderAt(5)="Attribute 3"
ListBoxItemsServer.HeaderAt(6)="Attribute 4"
ListBoxItemsServer.HeaderAt(7)="Attribute 5"
ListBoxItemsServer.HeaderAt(8)="Attribute 6"
ListBoxItemsServer.HeaderAt(9)="Attribute 7"
ListBoxItemsServer.HeaderAt(10)="Attribute 8"

```

The test programm is [here](https://drive.google.com/file/d/1BB6FW3fLc7aRWgmn4InHj9gJF6TZjfCo/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Gilles\_Plante](https://forum.xojo.com/user_avatar/forum.xojo.com/gilles_plante/32/667_2.png) [@Gilles\_Plante](https://forum.xojo.com/u/Gilles_Plante)\
**Post date:** [January 22, 2024, 9:45pm UTC](https://forum.xojo.com/t/listbox-headerat/78939/2 "2024-01-22T21:45:02Z")

</div>

Which Xojo version do you use ?

---

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [January 22, 2024, 9:56pm UTC](https://forum.xojo.com/t/listbox-headerat/78939/3 "2024-01-22T21:56:28Z")

</div>

Create an [Issue](https://xojo.com/issues), I see this on a mac:  
 ![image](https://forum.xojo.com/uploads/default/original/3X/9/8/9872427322ff16a7d8afa98c51a001ff89c17f27.png)

---

<div class="post-metadata">

**Author:** ![Thomas\_Roemert](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_roemert/32/827_2.png) [@Thomas\_Roemert](https://forum.xojo.com/u/Thomas_Roemert)\
**Post date:** [January 22, 2024, 9:56pm UTC](https://forum.xojo.com/t/listbox-headerat/78939/4 "2024-01-22T21:56:29Z")

</div>

Your Listbox is too small to display all columns. You can make it and the screen wider and change its behaviour, locking its right side too.

---

<div class="post-metadata">

**Author:** ![Sacha\_Donati](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@Sacha\_Donati](https://forum.xojo.com/u/Sacha_Donati)\
**Post date:** [January 23, 2024, 8:13pm UTC](https://forum.xojo.com/t/listbox-headerat/78939/5 "2024-01-23T20:13:42Z")

</div>

Solution found:  
The number of ListBoxItemsServer.ColumnWidths’s elements must be the same as the columns
