as refer to another post for adding a checkbox in groupheader,
i had implemented the code from
it works fine that it can select all child checkbox when click groupheader checkbox.
but i found that the groupheader checkbox cannot deselect after click. i had gone through the code many time but cannot solve it.