# FW: BoolEditor and renderer in Grid

**URL:** <https://www.ruby-forum.com/t/fw-booleditor-and-renderer-in-grid/151309>\
**Category:** wxRuby\
**Created:** [October 20, 2008, 7:47am UTC](https://www.ruby-forum.com/t/fw-booleditor-and-renderer-in-grid/151309 "2008-10-20T07:47:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3d9bf3/32.png) [@IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/u/IrlwegS_Franz_SZNT)\
**Post date:** [October 20, 2008, 7:47am UTC](https://www.ruby-forum.com/t/fw-booleditor-and-renderer-in-grid/151309/1 "2008-10-20T07:47:57Z")

</div>

Hello togheter,

I’m using the Wx::Grid, with GridTableBase. (wxruby 1.9.5 and wxruby  
1.9.8)

The GridCellBoolEditor and GridCellBoolRenderer doesn’t work. How can I  
solve the problem?

I have atached a file with an example.

Best regards,  
Franz

If you are not the intended recipient, you are hereby notified that any  
use, dissemination, or copying of this communication is strictly  
prohibited.  
If you have received this communication in error, please notify us at  
once so This communication and any files or attachments transmitted with  
it may contain information that is copyrighted or confidential and  
exempt from disclosure under applicable law. It is intended solely for  
the use of the individual or the entity to which it is addressed.  
that we may take the appropriate action and avoid troubling you further.  
Thank you for your cooperation. Please contact your local IT staff or  
email removed\_email\_address@domain.invalid if you need assistance.

Siltronic AG, Sitz Muenchen, Hanns-Seidel-Platz 4, 81737 Muenchen,  
Germany. Amtsgericht Muenchen HRB 150884  
Vorstand: Wilhelm Sittenthaler (Vorsitz), Gerhard Brehm, Paul Lindblad,  
Joachim Manke, Michael Peterat. Vorsitzender des Aufsichtsrats: Rudolf  
Staudigl

---

<div class="post-metadata">

**Author:** ![IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3d9bf3/32.png) [@IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/u/IrlwegS_Franz_SZNT)\
**Post date:** [October 20, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/fw-booleditor-and-renderer-in-grid/151309/2 "2008-10-20T18:01:16Z")

</div>

Irlweg, Franz (ZNT) wrote:

> I’m using the Wx::Grid, with GridTableBase. (wxruby 1.9.5 and wxruby  
> 1.9.8)
> 
> The GridCellBoolEditor and GridCellBoolRenderer doesn’t work. How can I  
> solve the problem

Thank you for the report and example. It’s a known bug:  
[http://rubyforge.org/tracker/index.php?func=detail&aid=21389&group\_id=35&atid=218](http://rubyforge.org/tracker/index.php?func=detail&aid=21389&group_id=35&atid=218)

I’m afraid I don’t know how to solve this one. I think I know what the  
problem is - ruby’s garbage collection is destroying the Attr object  
while it’s still needed.

Technically, there may be some clever fix possible by having the wrapper  
DISOWN the return value from GridTableBase so that memory management is  
passed back to Wx, but I’m not sure how to appraoch this.

Is it all possible to use a normal Grid in your case, without  
GridTableBase?

alex
