# ListView Appears Completely Broken

**URL:** <https://www.ruby-forum.com/t/listview-appears-completely-broken/163594>\
**Category:** wxRuby\
**Created:** [March 22, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/listview-appears-completely-broken/163594 "2009-03-22T21:06:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [March 22, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/listview-appears-completely-broken/163594/1 "2009-03-22T21:06:24Z")

</div>

The documentation says that the ListView control should be used in  
preference to ListCtrl. I can find the ListView documentation from a  
link on the ListCtrl page, but the ListView isn’t on the list of  
controls on the class reference.

I then call up irb and enter the following:

```
 require 'wx'
 Wx::ListView.methods

```

and get the response:

```
 uninitialized constant Wxruby2::ListView

```

Is the class completely broken in wxRuby, or is there a piece of magic  
that I’m missing? I’ve got a pretty good record of missing the obvious.

Thanks much  
—Michael

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [March 24, 2009, 8:23am UTC](https://www.ruby-forum.com/t/listview-appears-completely-broken/163594/2 "2009-03-24T08:23:16Z")

</div>

Hi Michael

Michael S. wrote:

> The documentation says that the ListView control should be used in  
> preference to ListCtrl. I can find the ListView documentation from a  
> link on the ListCtrl page, but the ListView isn’t on the list of  
> controls on the class reference.

Sorry, there’s no ListView in wxRuby; just use ListCtrl.

The recommendation was inherited from the C++ docs which we used as the  
starting point for the ruby docs. But in Ruby, ListCtrl isn’t that hard  
to use, so the ‘simpler’ class was redundant. I’ll update the docs.

thanks  
alex
