# ListCtrl selection

**URL:** <https://www.ruby-forum.com/t/listctrl-selection/151365>\
**Category:** wxRuby\
**Created:** [October 20, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/listctrl-selection/151365 "2008-10-20T18:38:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![biospank](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f475e1/32.png) [@biospank](https://www.ruby-forum.com/u/biospank)\
**Post date:** [October 20, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/listctrl-selection/151365/1 "2008-10-20T18:38:52Z")

</div>

Hi all,

to select an item into a listCtrl i’m doing this:

list\_ctrl#set\_item\_state(0, Wx::LIST\_STATE\_SELECTED,  
Wx::LIST\_MASK\_STATE)

but nothing happen.

is this the right way?

thank you.

bio.
