Checkbox in cell table/ data grid header

Here is a simple column header that selects/ de-selects all rows in a table. When all rows are checked, the header becomes checked automatically. Clicking o the checkbox in the header causes either to select or de-select all rows.

I am using the selection model and the data list provider to do the selection magic.

May not work for everyone….

And here is my custom header:

3 thoughts on “Checkbox in cell table/ data grid header”

  1. Whats missing here, is the explanation of how to use the custom header with the DataGrid.

    I can’t seem to find a way to assign it to the DGrid upon construction or afterwards.

    Any advice on how to put it into use, with not completely overriding DataGrid (which is painful on GWT updates).


Leave a Reply

Your email address will not be published. Required fields are marked *