# Listbox row or cell editable

**URL:** <https://forum.xojo.com/t/listbox-row-or-cell-editable/74652>\
**Category:** Getting Started\
**Created:** [February 26, 2023, 11:02pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652 "2023-02-26T23:02:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nektarios\_borbilas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/f05b48/32.png) [@nektarios\_borbilas](https://forum.xojo.com/u/nektarios_borbilas)\
**Post date:** [February 26, 2023, 11:02pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/1 "2023-02-26T23:02:01Z")

</div>

Hi everyone  
i am new to Xojo and experiencing problems  
i use version Xojo 2022r4.1 and windows 10  
i want to edit listbox  
as following but errors appear as following

“There is more than one method with this name but this does not match any of the available signatures.  
Lista.CellTypeAt(1) assigns value as TextEdit”

Anyone know please the solution?

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 27, 2023, 2:00am UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/2 "2023-02-27T02:00:56Z")

</div>

`Lista.CellTypeAt(row,column) = Listbox.CellTypes.TextField`

or you can do a whole column:

`Lista.ColumnTypeAt(Col) = Listbox.CellTypes.TextField`

---

<div class="post-metadata">

**Author:** ![nektarios\_borbilas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/f05b48/32.png) [@nektarios\_borbilas](https://forum.xojo.com/u/nektarios_borbilas)\
**Post date:** [February 27, 2023, 5:56pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/3 "2023-02-27T17:56:44Z")

</div>

Hi  
God bless you for the fast reply but it is not working…  
I have opened a new project and made printscreen in case you may find what i do wrong… (perhaps it needs an external library or something else i do not understand…)  
Million thanks in advance.

 ![Στιγμιότυπο οθόνης (5)](https://forum.xojo.com/uploads/default/original/2X/2/23be68fcc3f2a59c6573e5cb409755da2c153e8c.png)  
 ![Στιγμιότυπο οθόνης (6)](https://forum.xojo.com/uploads/default/original/2X/3/34ab2df98c4227f1f2acc92d770a58a33c995844.png)  
 ![Στιγμιότυπο οθόνης (7)](https://forum.xojo.com/uploads/default/original/2X/a/a4a2d1883b24695685b82c68e76f668cfe891ed1.png)  
 ![Στιγμιότυπο οθόνης (8)](https://forum.xojo.com/uploads/default/original/2X/7/7b94a61ded2cf79c71af6b329737a9752f34cd9d.png)  
 ![Στιγμιότυπο οθόνης (9)](https://forum.xojo.com/uploads/default/original/2X/c/c1d9ad1466ffedb505c318b5b7e38f279025c2df.png)

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [February 27, 2023, 6:05pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/4 "2023-02-27T18:05:20Z")

</div>

1. You should have:

```auto
me.AddRow
me.CellTypeAt

```

1. Try:

```auto
me.Addrow ()
me.CellTypeAt (0, 0) = Listbox.CellTypes.TextField

```

When you have added one row, its index is zero, not one.

You should really study the documentation for DesktopListbox at:

[https://documentation.xojo.com/api/user\_interface/desktop/desktoplistbox.html](https://documentation.xojo.com/api/user_interface/desktop/desktoplistbox.html)

---

<div class="post-metadata">

**Author:** ![nektarios\_borbilas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/f05b48/32.png) [@nektarios\_borbilas](https://forum.xojo.com/u/nektarios_borbilas)\
**Post date:** [February 27, 2023, 6:18pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/5 "2023-02-27T18:18:24Z")

</div>

hi sir  
Thank you for the super fast help God bless you  
but it is weird and it is not working.  
When i add rows all run smoothly…!!!  
When i try to make one row editable errors occur…

 ![Στιγμιότυπο οθόνης (11)](https://forum.xojo.com/uploads/default/original/2X/7/709814de1e487c81ef1c2373d5f0805114e3b071.png)  
 ![Στιγμιότυπο οθόνης (10)](https://forum.xojo.com/uploads/default/original/2X/6/6cb74fa96e362e209d0894cd991d3d68ec0fd0e1.png)  
 ![Στιγμιότυπο οθόνης (12)](https://forum.xojo.com/uploads/default/original/2X/c/c8778d10f7b04099b67ad8c2ee63903f04db9ae0.png)

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [February 27, 2023, 6:21pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/6 "2023-02-27T18:21:59Z")

</div>

Ah, maybe it needs to be:

```auto
me.CellTypeAt (0, 0) = DesktopListbox.CellTypes.TextField

```

You really need to spend some time reading through the documentation.

---

<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:** [February 27, 2023, 6:23pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/7 "2023-02-27T18:23:19Z")

</div>

As OP is using Xojo 2022r4.1 I think the needed code is:

```auto
me.Addrow ()
me.CellTypeAt (0, 0) = DesktopListbox.CellTypes.TextField

```

Edit: looks like we answered almost at the same time.

---

<div class="post-metadata">

**Author:** ![nektarios\_borbilas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/f05b48/32.png) [@nektarios\_borbilas](https://forum.xojo.com/u/nektarios_borbilas)\
**Post date:** [February 27, 2023, 6:25pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/8 "2023-02-27T18:25:43Z")

</div>

> [@TimStreater](#):
>
> `me.CellTypeAt (0, 0) = DesktopListbox.CellTypes.TextField`

Thank you both.!!!  
God bless you.!!!  
It finally works.!!!  
As most of documentation is for mac users.  
We the windows users are facing serious problems to adapt interface at our needs.!!!

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [February 27, 2023, 6:27pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/9 "2023-02-27T18:27:29Z")

</div>

It is identical code for all platforms. There is nothing in the doc I suggested which is macOS-specific.

Platform-specific code is always marked as such.

---

<div class="post-metadata">

**Author:** ![nektarios\_borbilas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/f05b48/32.png) [@nektarios\_borbilas](https://forum.xojo.com/u/nektarios_borbilas)\
**Post date:** [February 27, 2023, 6:31pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/10 "2023-02-27T18:31:48Z")

</div>

Yes indeed you are 100% right.  
I was looking youtube examples and as they did not work in my windows interface i was confused and did not read well the xojo documentation…  
Next time i will first search there the solution.  
Be well Tim.!!!  
Thank you indeed.!!!

---

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [February 27, 2023, 9:52pm UTC](https://forum.xojo.com/t/listbox-row-or-cell-editable/74652/11 "2023-02-27T21:52:28Z")

</div>

`desktopMe.DesktopCellTypeAt(Desktop0,Desktop0) = DesktopListbox.DesktopCellTypes.DesktoptextField`

🙄
