I have a DataGrid with a CheckBox in each row. The DataGrid
includes an attribute to catch the itemClick event - however it
doesn't work when the CheckBox is checked or unchecked. Is this
because the CheckBox is a separate component in the DataGrid?
Also, I have tried to create the CheckBox with two different
pieces of code - each is shown below. The first works fine, but the
second throws an error when I click on more than one CheckBox. What
is the proper way to expand code 1 into code 2? (So that I can
control the layout, etc)
> Is this because the CheckBox is a separate component in
Your code in the first instance works because the renderer
component is actually a checkbox, while in second case, it's not a
checkbox but a VBox. If you're trying to align it, use column's
alignment properties instead.