# wxRuby - tabular data with extra widgets

**URL:** <https://www.ruby-forum.com/t/wxruby-tabular-data-with-extra-widgets/178718>\
**Category:** Ruby\
**Created:** [November 9, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/wxruby-tabular-data-with-extra-widgets/178718 "2009-11-09T22:49:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inertia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d07c76/32.png) [@inertia](https://www.ruby-forum.com/u/inertia)\
**Post date:** [November 9, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/wxruby-tabular-data-with-extra-widgets/178718/1 "2009-11-09T22:49:44Z")

</div>

Hi,

```
I am needing to display a table of data.
I need to be able to sort the columns by clicking the label at the

```

top (ideally such that one click sorts ascending, the next descending  
etc etc)  
I need grid lines.  
I need to be able to include drop down lists in multiple columns,  
such that selecting the drop down will change columns in the same row.

```
This data is backed by active record, and I have active support etc

```

available.

```
My first thought was to use Wx::Grid, but I don't have the first

```

idea how to go about getting a drop down into a column.

```
My second thought is to use a grid sizer of some sort, but that

```

would mean creating my own buttons for the column headers, doing  
something to get a grid etc etc.

```
What other options to I have? Or how do I go about 1)?

All pointers appreciated!

Current source is at

```

[http://codaset.com/nevynxxx/wxrcg/source/master/blob/lib/views/dm\_screen\_frame.rb](http://codaset.com/nevynxxx/wxrcg/source/master/blob/lib/views/dm_screen_frame.rb)

Regards

Anthony
