# LC\_REPORT ListCtrl Confusion

**URL:** <https://www.ruby-forum.com/t/lc-report-listctrl-confusion/136039>\
**Category:** wxRuby\
**Created:** [April 28, 2008, 10:46am UTC](https://www.ruby-forum.com/t/lc-report-listctrl-confusion/136039 "2008-04-28T10:46:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_Levin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c68b51/32.png) [@Lucas\_Levin](https://www.ruby-forum.com/u/Lucas_Levin)\
**Post date:** [April 28, 2008, 10:46am UTC](https://www.ruby-forum.com/t/lc-report-listctrl-confusion/136039/1 "2008-04-28T10:46:51Z")

</div>

Hi,  
I’m having some trouble allowing the user to edit a multi-column  
listctrl. I can do the first column fine, simply by calling  
ListCtrl::edit\_label in the activate event, but it seems impossible to  
do this for the other columns for two reasons. 1, the activate event  
doesn’t allow you to get the column, and 2, edit\_label onl;y works for  
the first column.

Thanks,  
Lucas

---

<div class="post-metadata">

**Author:** ![Lucas\_Levin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c68b51/32.png) [@Lucas\_Levin](https://www.ruby-forum.com/u/Lucas_Levin)\
**Post date:** [April 28, 2008, 11:52am UTC](https://www.ruby-forum.com/t/lc-report-listctrl-confusion/136039/2 "2008-04-28T11:52:37Z")

</div>

Hi

Lucas Levin wrote:

> I’m having some trouble allowing the user to edit a multi-column  
> listctrl. I can do the first column fine, simply by calling  
> ListCtrl::edit\_label in the activate event, but it seems impossible to  
> do this for the other columns for two reasons. 1, the activate event  
> doesn’t allow you to get the column, and 2, edit\_label onl;y works for  
> the first column.

I can’t find a reference right now, but I have a feeling that only the  
first column is editable - I think because not all the native controls  
support editing of secondary columns.

You might look into Wx::Grid, which does support this. Its appearance is  
highly customisable so you could make it look more like a ListCtrl if  
you wished.

a
