# edit a cell in a listbox?

**URL:** <https://forum.xojo.com/t/edit-a-cell-in-a-listbox/12433>\
**Category:** General\
**Created:** [November 19, 2013, 7:34pm UTC](https://forum.xojo.com/t/edit-a-cell-in-a-listbox/12433 "2013-11-19T19:34:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_O\_Brien](https://forum.xojo.com/user_avatar/forum.xojo.com/brian_o_brien/32/20096_2.png) [@Brian\_O\_Brien](https://forum.xojo.com/u/Brian_O_Brien)\
**Post date:** [November 19, 2013, 7:34pm UTC](https://forum.xojo.com/t/edit-a-cell-in-a-listbox/12433/1 "2013-11-19T19:34:41Z")

</div>

Can one click on a listbox cell and edit it?  
Can I catch the cell clicked event and place a textfield the same width and height as the cell over top of the cell and edit it?

---

<div class="post-metadata">

**Author:** ![Paul\_Lefebvre](https://forum.xojo.com/user_avatar/forum.xojo.com/paul_lefebvre/32/3152_2.png) [@Paul\_Lefebvre](https://forum.xojo.com/u/Paul_Lefebvre)\
**Post date:** [November 19, 2013, 7:37pm UTC](https://forum.xojo.com/t/edit-a-cell-in-a-listbox/12433/2 "2013-11-19T19:37:48Z")

</div>

You can do inline editing of ListBox cells. See [ListBox.EditCell](http://documentation.xojo.com/index.php/ListBox.EditCell) and the [ListBox webinar](http://documentation.xojo.com/index.php/Videos) for specific examples.

Also, see Examples/Desktop/Controls/ListBoxExample included with Xojo.

---

<div class="post-metadata">

**Author:** ![Brian\_O\_Brien](https://forum.xojo.com/user_avatar/forum.xojo.com/brian_o_brien/32/20096_2.png) [@Brian\_O\_Brien](https://forum.xojo.com/u/Brian_O_Brien)\
**Post date:** [December 19, 2018, 7:26pm UTC](https://forum.xojo.com/t/edit-a-cell-in-a-listbox/12433/4 "2018-12-19T19:26:54Z")

</div>

If i want all cells editable must I loop through each cell and set its editable property? Can’t I use -1 for a wildcard?

---

<div class="post-metadata">

**Author:** ![Tim\_Hare](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_hare/32/176_2.png) [@Tim\_Hare](https://forum.xojo.com/u/Tim_Hare)\
**Post date:** [December 20, 2018, 12:18am UTC](https://forum.xojo.com/t/edit-a-cell-in-a-listbox/12433/5 "2018-12-20T00:18:32Z")

</div>

You can set each column to editable. That allows you to edit every cell in that column. So you only have to loop over the columns, if you want to set every cell to editable.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 4:56pm UTC](https://forum.xojo.com/t/edit-a-cell-in-a-listbox/12433/6 "2020-10-29T16:56:49Z")

</div>


