Hello,
I'm trying to have a checkbox inside a datagrid that can be used for
editing the underlying data. Of course, this means use an item editor.
However, in the grid, it'll have either "true" or "false" in the cell,
instead of a checkbox. The checkbox only appears when the user clicks
the cell. This, of course, is less intuitive. I've tried making a
checkbox be the renderer as well. However, this causes the user to need
to click the box twice to change it. The first click puts it in edit
mode, the second one actually selects/deselects the box. Of course,
some logic could be added that would change the renderer, but it seems
redundant (and a waste of memory) to have two objects doing the same
thing. What I'd want is for the editor to actually be the renderer as
well. How can this be done?