Select all option in Data table

I am trying to add a checkbox in the header of the data table,how can I do tht? also which I check that header checkbox all the checkbox in that row should get selected and vice versa. Can you please help!

May be you are looking for master checkbox
https://docs.webix.com/samples/15_datatable/04_editing/16_master_checkbox.html

Thanks for the response. But still have an issue, if I manually select all the checkboxes then the main header checkbox should also get checked automatically but that doesn’t happen in your example. can you suggest any way to achieve that?

Check this snippet:
https://snippet.webix.com/7fb68cc2

Thanks!